summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/reflect-parse/destructuring__proto__.js
blob: 3238904086974a0f23528af8b9d441b8a74a7087 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |reftest| skip-if(!xulRuntime.shell)
// |reftest| skip-if(!xulRuntime.shell)
// bug 963641

Reflect.parse("({ __proto__: null });");
Reflect.parse("var { __proto__: x } = obj;");
Reflect.parse("var [{ __proto__: y }] = obj;");
Reflect.parse("[{ __proto__: y }] = arr;");
Reflect.parse("({ __proto__: y } = obj);");

if (typeof reportCompare === "function")
  reportCompare(true, true);



print("Tests complete");