This repository has been archived by the owner on May 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 150
json3 dosn't run in VM #86
Comments
I'm hitting the same issue in a WebWorker in an iOS webview |
+1 |
It's |
Same issue when importing |
The same problem,in Electron,use SocketIO through webWorker,:
https://github.com/trezor/hd-wallet Solution: https://github.com/electron/electron/blob/master/docs/tutorial/multithreading.md |
1 task
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hay, i have a little problem.
I cant use json3 (socket.io, btw. socket.io-client) inside a node js VM.
When i run it i become this error: "TypeError: Cannot read property 'prototype' of undefined"
/home/marc/NetBeansProjects/Project/node_modules/socket.io-client/node_modules/json3/lib/json3.js:50
var objectProto = Object.prototype,
^
TypeError: Cannot read property 'prototype' of undefined
at runInContext (/home/marc/NetBeansProjects/Project/node_modules/socket.io-client/node_modules/json3/lib/json3.js:50:29)
As VM i use the module "sandboxed-module" (https://github.com/felixge/node-sandboxed-module)
See other issue on: socketio/socket.io#2381 (comment)
The text was updated successfully, but these errors were encountered: