diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-76.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-76.js | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-76.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-76.js index 7473dbac8..7be62f266 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-76.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-76.js @@ -13,26 +13,23 @@ includes: [propertyHelper.js] var obj = {}; function getFunc1() { - return 10; + return 10; } - function setFunc1(value) { - obj.helpVerifySet = value; + obj.helpVerifySet = value; } Object.defineProperty(obj, "foo", { - get: getFunc1, - set: setFunc1, - configurable: true + get: getFunc1, + set: setFunc1, + configurable: true }); function getFunc2() { - return 20; + return 20; } -Object.defineProperty(obj, "foo", { - get: getFunc2 -}); +Object.defineProperty(obj, "foo", { get: getFunc2 }); verifyEqualTo(obj, "foo", getFunc2()); verifyWritable(obj, "foo", "helpVerifySet"); |