diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-500.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-500.js | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-500.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-500.js index ed20f1ac7..aee530e20 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-500.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-500.js @@ -10,36 +10,36 @@ description: > value ---*/ - var obj = {}; +var obj = {}; - var getFunc = function () { - return 1001; - }; +var getFunc = function() { + return 1001; +}; - Object.defineProperty(obj, "prop", { - get: getFunc, - set: undefined, - enumerable: true, - configurable: true - }); - var result1 = false; - var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p1 in obj) { - if (p1 === "prop") { - result1 = true; - } - } +Object.defineProperty(obj, "prop", { + get: getFunc, + set: undefined, + enumerable: true, + configurable: true +}); +var result1 = false; +var desc1 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p1 in obj) { + if (p1 === "prop") { + result1 = true; + } +} - Object.defineProperty(obj, "prop", { - enumerable: false - }); - var result2 = false; - var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); - for (var p2 in obj) { - if (p2 === "prop") { - result2 = true; - } - } +Object.defineProperty(obj, "prop", { + enumerable: false +}); +var result2 = false; +var desc2 = Object.getOwnPropertyDescriptor(obj, "prop"); +for (var p2 in obj) { + if (p2 === "prop") { + result2 = true; + } +} assert(result1, 'result1 !== true'); assert.sameValue(result2, false, 'result2'); |