write-frozen-property.js (93B)
1 function foo(x) { 2 x.a = 10; 3 assertEq(x.a, 0); 4 } 5 x = {a:0,b:1}; 6 Object.freeze(x); 7 foo(x);