vm: references to context inside objects are not === the original context
Open
@devsnek is already working on this.
Since Nov 29, 2019.
never-stale
vm
- Dominant language
- JavaScript
- Stars
- 122k
- Forks
- 37.3k
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 283
Description
Failing test case:
var common = require('../common');
var assert = require('assert');
var vm = require('vm');
var sandbox = {};
sandbox.document = { defaultView: sandbox };
vm.createContext(sandbox);
vm.runInContext('var result = document.defaultView === this', sandbox);
assert.equal(sandbox.result, true);
Investigating this in my local build ... this is the only remaining test suite failure after switching jsdom to io.js vm.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.