summaryrefslogtreecommitdiffstats
path: root/js/src/tests/non262/reflect-parse/proxyArgs.js
blob: 771b61ad66a6fc79ed0b19811df3e26ad3b14876 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |reftest| skip-if(!xulRuntime.shell)
// |reftest| skip-if(!xulRuntime.shell)
// bug 905774

// Proxy options
var opts = new Proxy({loc: false}, {});
assertEq("loc" in Reflect.parse("0;", opts), false);
opts.loc = true;
assertEq(Reflect.parse("0;", opts).loc !== null, true);
delete opts.loc;
assertEq(Reflect.parse("0;", opts).loc !== null, true);  // default is true

reportCompare(0, 0, 'ok');