diff options
Diffstat (limited to 'test/built-ins/Object/isFrozen/15.2.3.12-2-2.js')
-rw-r--r-- | test/built-ins/Object/isFrozen/15.2.3.12-2-2.js | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/test/built-ins/Object/isFrozen/15.2.3.12-2-2.js b/test/built-ins/Object/isFrozen/15.2.3.12-2-2.js index e7fa25860..b4c795992 100644 --- a/test/built-ins/Object/isFrozen/15.2.3.12-2-2.js +++ b/test/built-ins/Object/isFrozen/15.2.3.12-2-2.js @@ -8,24 +8,25 @@ description: > into the for each loop ---*/ - var proto = {}; - - function get_func() { - return 10; - } - function set_func() { } +var proto = {}; - Object.defineProperty(proto, "Father", { - get: get_func, - set: set_func, - configurable: true - }); +function get_func() { + return 10; +} - var Con = function () { }; - Con.prototype = proto; +function set_func() {} - var child = new Con(); +Object.defineProperty(proto, "Father", { + get: get_func, + set: set_func, + configurable: true +}); - Object.preventExtensions(child); +var Con = function() {}; +Con.prototype = proto; + +var child = new Con(); + +Object.preventExtensions(child); assert(Object.isFrozen(child), 'Object.isFrozen(child) !== true'); |