diff options
Diffstat (limited to 'test/built-ins/Object/defineProperties/15.2.3.7-6-a-8.js')
-rw-r--r-- | test/built-ins/Object/defineProperties/15.2.3.7-6-a-8.js | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-8.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-8.js index 923f4fdc9..119c27d79 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-8.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-8.js @@ -8,29 +8,29 @@ description: > overrides an inherited accessor property (8.12.9 step 1 ) ---*/ - var proto = {}; - Object.defineProperty(proto, "prop", { - get: function() { - return 11; - }, - configurable: true - }); - var Con = function () { }; - Con.prototype = proto; +var proto = {}; +Object.defineProperty(proto, "prop", { + get: function() { + return 11; + }, + configurable: true +}); +var Con = function() {}; +Con.prototype = proto; - var obj = new Con(); - Object.defineProperty(obj, "prop", { - get: function () { - return 12; - }, - configurable: false - }); +var obj = new Con(); +Object.defineProperty(obj, "prop", { + get: function() { + return 12; + }, + configurable: false +}); assert.throws(TypeError, function() { - Object.defineProperties(obj, { - prop: { - value: 13, - configurable: true - } - }); + Object.defineProperties(obj, { + prop: { + value: 13, + configurable: true + } + }); }); assert.sameValue(obj.prop, 12, 'obj.prop'); |