diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-365.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-365.js | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-365.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-365.js index 81006c4b8..e64f411e9 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-365.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-365.js @@ -9,22 +9,22 @@ description: > [[Configurable]] is false) to different value ---*/ -var obj = {}; + var obj = {}; -Object.defineProperty(obj, "prop", { - value: 2010, - writable: false, - enumerable: true, - configurable: false -}); -var propertyDefineCorrect = obj.hasOwnProperty("prop"); -var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); + Object.defineProperty(obj, "prop", { + value: 2010, + writable: false, + enumerable: true, + configurable: false + }); + var propertyDefineCorrect = obj.hasOwnProperty("prop"); + var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - enumerable: false - }); + Object.defineProperty(obj, "prop", { + enumerable: false + }); }); -var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); + var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc1.enumerable, true, 'desc1.enumerable'); |