diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-3-258.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-3-258.js | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-258.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-258.js index f75b5de0e..3ec7fdcf0 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-258.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-258.js @@ -9,17 +9,15 @@ description: > (8.10.5 step 8.a) ---*/ -var obj = {}; -var data = "data"; -var argObj = (function() { - return arguments; -})(); -argObj.set = function(value) { - data = value; -}; + var obj = {}; + var data = "data"; + var argObj = (function () { return arguments; })(); + argObj.set = function (value) { + data = value; + }; -Object.defineProperty(obj, "property", argObj); -obj.property = "overrideData"; + Object.defineProperty(obj, "property", argObj); + obj.property = "overrideData"; assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true'); assert.sameValue(data, "overrideData", 'data'); |