Closed
Description
- Version: v7.4.0
- Platform: Windows 10 64-bit
- Subsystem: vm
Repro:
"use strict";
const vm = require("vm");
const ctx = vm.createContext({ open() { } });
const window = vm.runInContext("this", ctx);
const other = 123;
console.log(window.open === other);
window.open = other;
console.log(window.open === other);
window.open = other;
console.log(window.open === other);
this outputs false, false, true in v7.4.0, whereas in v7.2.1 it output the expected false, true, true. I am guessing this is another regression (see also #10492) caused by 524f693. Maybe it is even the same issue, but here is a minimal repro.
/cc @fhinkel @bnoordhuis @MylesBorins
Found via jsdom/jsdom#1703