]>
git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/freeze_leek.js
1 var o
= Object
.freeze([]),
8 if(o
.stack
!== undefined)
9 throw new Error("the stack was leaked.");
14 throw new Error("the object wasn't frozen.");
18 if(o
.other
=== "wrong")
19 throw new Error("the object wasn't frozen.");
22 o
= Object
.freeze({"hi": "other"});
30 if(o
.stack
!== undefined)
31 throw new Error("the stack was leaked.");
36 throw new Error("the object wasn't frozen.");
40 if(o
.other
=== "wrong")
41 throw new Error("the object wasn't frozen.");