diff options
Diffstat (limited to 'test/built-ins/Object/seal/15.2.3.8-2-3.js')
-rw-r--r-- | test/built-ins/Object/seal/15.2.3.8-2-3.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/test/built-ins/Object/seal/15.2.3.8-2-3.js b/test/built-ins/Object/seal/15.2.3.8-2-3.js index 3341b0c9a..5dff8563f 100644 --- a/test/built-ins/Object/seal/15.2.3.8-2-3.js +++ b/test/built-ins/Object/seal/15.2.3.8-2-3.js @@ -6,25 +6,25 @@ es5id: 15.2.3.8-2-3 description: Object.seal - inherited accessor properties are ignored ---*/ - var proto = {}; +var proto = {}; - Object.defineProperty(proto, "Father", { - get: function () { - return 10; - }, - configurable: true - }); +Object.defineProperty(proto, "Father", { + get: function() { + return 10; + }, + configurable: true +}); - var ConstructFun = function () { }; - ConstructFun.prototype = proto; +var ConstructFun = function() {}; +ConstructFun.prototype = proto; - var child = new ConstructFun(); - var preCheck = Object.isExtensible(child); - Object.seal(child); +var child = new ConstructFun(); +var preCheck = Object.isExtensible(child); +Object.seal(child); - var beforeDeleted = proto.hasOwnProperty("Father"); - delete proto.Father; - var afterDeleted = proto.hasOwnProperty("Father"); +var beforeDeleted = proto.hasOwnProperty("Father"); +delete proto.Father; +var afterDeleted = proto.hasOwnProperty("Father"); assert(preCheck, 'preCheck !== true'); assert(beforeDeleted, 'beforeDeleted !== true'); |