diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-267.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-267.js | 35 |
1 files changed, 17 insertions, 18 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-267.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-267.js index 2c8a50323..ddca9e2e3 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-267.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-267.js @@ -11,26 +11,25 @@ description: > named property, name is accessor property and 'desc' is accessor descriptor, test updating the [[Get]] attribute value of 'name' from undefined to function object (15.4.5.1 step 4.c) -includes: - - runTestCase.js - - accessorPropertyAttributesAreCorrect.js +includes: [propertyHelper.js] ---*/ -function testcase() { - var arrObj = []; +var arrObj = []; - function getFunc() { - return 12; - } - Object.defineProperty(arrObj, "0", { - get: undefined, - configurable: true - }); +function getFunc() { + return 12; +} +Object.defineProperty(arrObj, "0", { + get: undefined, + configurable: true +}); - Object.defineProperty(arrObj, "0", { - get: getFunc - }); - return accessorPropertyAttributesAreCorrect(arrObj, "0", getFunc, undefined, undefined, false, true); - } -runTestCase(testcase); +Object.defineProperty(arrObj, "0", { + get: getFunc +}); +verifyEqualTo(arrObj, "0", getFunc()); + +verifyNotEnumerable(arrObj, "0"); + +verifyConfigurable(arrObj, "0"); |