diff options
Diffstat (limited to 'test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-3.js')
-rw-r--r-- | test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-3.js | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-3.js b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-3.js index 51507f70b..a21bed132 100644 --- a/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-3.js +++ b/test/built-ins/Object/getOwnPropertyDescriptor/15.2.3.3-4-3.js @@ -8,15 +8,19 @@ description: > accessor desc for valid accessor properties ---*/ - var o = {}; +var o = {}; - // dummy getter - var getter = function () { return 1; } - var d = { get: getter }; +// dummy getter +var getter = function() { + return 1; +} +var d = { + get: getter +}; - Object.defineProperty(o, "foo", d); +Object.defineProperty(o, "foo", d); - var desc = Object.getOwnPropertyDescriptor(o, "foo"); +var desc = Object.getOwnPropertyDescriptor(o, "foo"); assert.sameValue(desc.get, getter, 'desc.get'); assert.sameValue(desc.set, undefined, 'desc.set'); |