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