Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: js/xpconnect/tests/unit/xpcshell.toml
function run_test() {
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);
}