You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 28, 2019. It is now read-only.
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)
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)