diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-3-68.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-3-68.js | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-3-68.js b/test/built-ins/Object/defineProperty/15.2.3.6-3-68.js index e5b19c83e..842b98eb2 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-3-68.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-3-68.js @@ -8,20 +8,16 @@ description: > 'Attributes' is an Arguments Object (8.10.5 step 3.b) ---*/ -var obj = {}; -var accessed = false; -var argObj = (function() { - return arguments; -})(0, 1, 2); + var obj = {}; + var accessed = false; + var argObj = (function () { return arguments; })(0, 1, 2); -Object.defineProperty(obj, "property", { - enumerable: argObj -}); + Object.defineProperty(obj, "property", { enumerable: argObj }); -for (var prop in obj) { - if (prop === "property") { - accessed = true; - } -} + for (var prop in obj) { + if (prop === "property") { + accessed = true; + } + } assert(accessed, 'accessed !== true'); |