summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug1357462.js
blob: f2364951fb0ad292acafd1abf0c0d0789442ba86 (plain)
1
2
3
4
5
6
var p = Object.freeze(["old-value"]);
var a = Object.setPrototypeOf([], p);

assertEq(p[0], "old-value");
assertEq(Reflect.set(a, 0, "new-value", p), false);
assertEq(p[0], "old-value");