blob: b724ba4b180fabc4525c153f072c89141a8abf0c (
plain)
1
2
3
4
5
6
7
8
|
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);
}
|