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

VM: handler.has() of Proxy is not effective in vm.runInContext() #33988

Closed
takayama-lily opened this issue Jun 20, 2020 · 1 comment
Closed
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs.

Comments

@takayama-lily
Copy link
Contributor

takayama-lily commented Jun 20, 2020

  • Version: v13.10.1
  • Platform: Windows10 64bit
  • Subsystem:

What steps will reproduce the bug?

var vm = require("vm")
var context = new Proxy({foo:1, bar: 2}, {
  has(target, prop) {
    return false
  }
})
vm.createContext(context)
console.log("foo" in context)
// output: false (expected false)
console.log(vm.runInContext(`"foo" in this`, context))
// output: true  (expected false)
@devsnek
Copy link
Member

devsnek commented Jun 20, 2020

Duplicate of #30985

@devsnek devsnek closed this as completed Jun 20, 2020
@devsnek devsnek added the duplicate Issues and PRs that are duplicates of other issues or PRs. label Jun 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs.
Projects
None yet
Development

No branches or pull requests

2 participants