This repository was archived by the owner on May 28, 2019. It is now read-only.
This repository was archived by the owner on May 28, 2019. It is now read-only.
json3 dosn't run in VM #86
Open
Description
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)
Metadata
Metadata
Assignees
Labels
No labels