Debian Codegraph @

js/src/tests/non262/reflect-parse/destructuring__proto__.js

raw
1 // |reftest| skip-if(!xulRuntime.shell)
2 // |reftest| skip-if(!xulRuntime.shell)
3 // bug 963641
4
5 Reflect.parse("({ __proto__: null });");
6 Reflect.parse("var { __proto__: x } = obj;");
7 Reflect.parse("var [{ __proto__: y }] = obj;");
8 Reflect.parse("[{ __proto__: y }] = arr;");
9 Reflect.parse("({ __proto__: y } = obj);");
10
11 if (typeof reportCompare === "function")
12 reportCompare(true, true);
13
14
15
16 print("Tests complete");