summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/write-frozen-property.js
blob: a6228fbb0028669ae682855e48a40d8d6610e516 (plain)
1
2
3
4
5
6
7
function foo(x) {
  x.a = 10;
  assertEq(x.a, 0);
}
x = {a:0,b:1};
Object.freeze(x);
foo(x);