diff options
Diffstat (limited to 'test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-241.js')
-rw-r--r-- | test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-241.js | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-241.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-241.js index 0f0ce2813..d70e6b556 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-241.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-241.js @@ -9,22 +9,22 @@ description: > attribute ---*/ - var obj = {}; - var fun = function () { - return "ownDataProperty"; - }; - Object.defineProperty(obj, "property", { - get: fun, - configurable: true - }); +var obj = {}; +var fun = function() { + return "ownDataProperty"; +}; +Object.defineProperty(obj, "property", { + get: fun, + configurable: true +}); - var desc = Object.getOwnPropertyDescriptor(obj, "property"); - var accessed = false; +var desc = Object.getOwnPropertyDescriptor(obj, "property"); +var accessed = false; - for (var prop in desc) { - if (prop === "get") { - accessed = true; - } - } +for (var prop in desc) { + if (prop === "get") { + accessed = true; + } +} assert(accessed, 'accessed !== true'); |