We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
'use strict'; const vm = require('vm'); let obj = {}; const ctx = vm.createContext(obj); vm.runInContext('name = 1', ctx); console.log(obj); vm.runInContext('function name() {}', ctx); console.log(obj);
gives
{ name: 1 } { name: 1 }
vm.runInContext fails to overwrite name property of given context.
vm.runInContext
name
Tested versions: v4.1.1 & v4.2.1
v4.1.1
v4.2.1
The text was updated successfully, but these errors were encountered:
I think this is a duplicate of #548. @princejwesley does that seem right?
Sorry, something went wrong.
@brendanashworth Yes.
No branches or pull requests
gives
vm.runInContext
fails to overwritename
property of given context.Tested versions:
v4.1.1
&v4.2.1
The text was updated successfully, but these errors were encountered: