diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-453.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-453.js | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-453.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-453.js index c0780c55b..1dc9a7a40 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-453.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-453.js @@ -10,27 +10,27 @@ description: > value ---*/ - var obj = {}; - var getFunc = function () { - return 1001; - }; +var obj = {}; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: undefined, - set: undefined, - enumerable: false, - configurable: false - }); +Object.defineProperty(obj, "prop", { + get: undefined, + set: undefined, + enumerable: false, + configurable: false +}); - var result1 = typeof obj.prop === "undefined"; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result1 = typeof obj.prop === "undefined"; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); assert.throws(TypeError, function() { - Object.defineProperty(obj, "prop", { - get: getFunc - }); + Object.defineProperty(obj, "prop", { + get: getFunc + }); }); - var result2 = typeof obj.prop === "undefined"; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +var result2 = typeof obj.prop === "undefined"; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); assert(result1, 'result1 !== true'); assert(result2, 'result2 !== true'); assert.sameValue(typeof desc1.get, "undefined", 'typeof desc1.get'); |