felixge / felixge/node-sandboxed-module

json3 dosn't run in VM

Open
#55 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
343
Forks
41
PR merge metrics
No merged PRs in 30d

Description

Hay, i have a little problem.

I cant use json3 (socket.io, btw. socket.io-client) inside the node js VM.
When i run it i become this error: "TypeError: Cannot read property 'prototype' of undefined"
(https://github.com/bestiejs/json3)

/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)

See other issue on: https://github.com/socketio/socket.io/issues/2381#issuecomment-172353479

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.