-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
filename option in vm.runInThisContext function argument disabled #2711
Comments
It works for me, are you sure you're using the right version of node.js/io.js?
For example, on node v0.10, the second parameter is the
node v0.12+ is backwards compatible with the string argument. So you could just use that type of invocation if you need to also support v0.10. |
Excuse me. My node has a version 0.10.40. To install it, I use a simple script: |
Ok, so then you will need to use the second solution instead: |
Sounds like this has been answered. Re-open if necessary. |
Yes. many thanks! |
This code:
gives such a output:
But docapi says:
filename: allows you to control the filename that shows up in any stack traces produced.
The text was updated successfully, but these errors were encountered: