diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js index 7db3da876..4ab77fa5f 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-540-4.js @@ -9,27 +9,27 @@ description: > step 5.b) ---*/ - var obj = []; +var obj = []; - obj.verifySetFunc = "data"; - var getFunc = function () { - return obj.verifySetFunc; - }; +obj.verifySetFunc = "data"; +var getFunc = function() { + return obj.verifySetFunc; +}; - var setFunc = function (value) { - obj.verifySetFunc = value; - }; +var setFunc = function(value) { + obj.verifySetFunc = value; +}; - Object.defineProperty(obj, "0", { - get: getFunc, - set: setFunc, - enumerable: true, - configurable: false - }); +Object.defineProperty(obj, "0", { + get: getFunc, + set: setFunc, + enumerable: true, + configurable: false +}); - obj[0] = "overrideData"; - var propertyDefineCorrect = obj.hasOwnProperty("0"); - var desc = Object.getOwnPropertyDescriptor(obj, "0"); +obj[0] = "overrideData"; +var propertyDefineCorrect = obj.hasOwnProperty("0"); +var desc = Object.getOwnPropertyDescriptor(obj, "0"); assert(propertyDefineCorrect, 'propertyDefineCorrect !== true'); assert.sameValue(desc.set, setFunc, 'desc.set'); |