michael@0: michael@0: function foo(x) { michael@0: x.a = 10; michael@0: assertEq(x.a, 0); michael@0: } michael@0: x = {a:0,b:1}; michael@0: Object.freeze(x); michael@0: foo(x);