Home | History | Annotate | Download | only in webkit

Lines Matching refs:freeze

25 "This test checks whether various seal/freeze/preventExtentions work on a regular object."
58 function freeze(obj)
60 Object.freeze(obj);
75 freeze(frozen);
90 shouldBe('test(freeze(obj()))', '"(a:1)(b:2)SF"'); // sealed and frozen, CANNOT delete a, CANNOT modify b, and CANNOT add c
110 Object.freeze(Constructor.prototype);
116 var func = freeze(function foo(){});
123 var strictFunc = freeze(function foo(){ "use strict"; });
130 var array = freeze([0,1,2]);
137 var args = freeze((function(){ return arguments; })(0,1,2));
144 // Check that freeze still works if preventExtensions has been called on the object.
148 Object.freeze(x);
156 shouldBeFalse('Object.getOwnPropertyDescriptor(freeze({0:0}), 0).configurable');
157 shouldBeFalse('Object.getOwnPropertyDescriptor(freeze({10000001:0}), 10000001).configurable');