1
0
Fork 0
firefox/js/xpconnect/tests/unit/test_bug856067.js
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

8 lines
392 B
JavaScript

function run_test() {
var sb = new Cu.Sandbox('http://www.example.com');
let w = Cu.evalInSandbox('var w = new Map()[Symbol.iterator](); w.__proto__ = new Set(); w.foopy = 12; w', sb);
Assert.equal(Object.getPrototypeOf(w), sb.Object.prototype);
Assert.equal(Object.getOwnPropertyNames(w).length, 0);
Assert.equal(w.wrappedJSObject.foopy, 12);
Assert.equal(w.foopy, undefined);
}