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