Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot call method 'runInNewContext' #17

Open
berkerpeksag opened this issue Apr 8, 2011 · 3 comments
Open

TypeError: Cannot call method 'runInNewContext' #17

berkerpeksag opened this issue Apr 8, 2011 · 3 comments

Comments

@berkerpeksag
Copy link

Hello,

I'm using Node.js v0.5.0-pre and when I run this code, I'm getting this error(test log). Is this a bug?

Thanks!

@berkerpeksag
Copy link
Author

Problem solved with Node.js v0.4.2.

@jifeon
Copy link

jifeon commented Dec 5, 2011

Problem is actual in node v0.6.5

@ghost
Copy link

ghost commented Jan 1, 2012

For fixing open lib/server.js and edit
at top:
//Script = process.binding('evals').Script;
vm = require('vm');
change Script.runInNewContext to vm.runInNewContext

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants