diff options
Diffstat (limited to 'test/built-ins/Object/defineProperty/15.2.3.6-4-302-1.js')
-rw-r--r-- | test/built-ins/Object/defineProperty/15.2.3.6-4-302-1.js | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/test/built-ins/Object/defineProperty/15.2.3.6-4-302-1.js b/test/built-ins/Object/defineProperty/15.2.3.6-4-302-1.js index 6d81eb5f8..2abc9a5ca 100644 --- a/test/built-ins/Object/defineProperty/15.2.3.6-4-302-1.js +++ b/test/built-ins/Object/defineProperty/15.2.3.6-4-302-1.js @@ -13,28 +13,30 @@ description: > includes: [propertyHelper.js] ---*/ -(function (a, b, c) { - delete arguments[0]; - function getFunc() { - return 10; - } - function setFunc(value) { - this.setVerifyHelpProp = value; - } - Object.defineProperty(arguments, "0", { - get: getFunc, - set: setFunc, - enumerable: false, - configurable: false - }); - if (a !== 0) { - $ERROR('Expected a === 0, actually ' + a); - } - verifyEqualTo(arguments, "0", getFunc()); +(function(a, b, c) { + delete arguments[0]; - verifyWritable(arguments, "0", "setVerifyHelpProp"); + function getFunc() { + return 10; + } - verifyNotEnumerable(arguments, "0"); + function setFunc(value) { + this.setVerifyHelpProp = value; + } + Object.defineProperty(arguments, "0", { + get: getFunc, + set: setFunc, + enumerable: false, + configurable: false + }); + if (a !== 0) { + $ERROR('Expected a === 0, actually ' + a); + } + verifyEqualTo(arguments, "0", getFunc()); - verifyNotConfigurable(arguments, "0"); + verifyWritable(arguments, "0", "setVerifyHelpProp"); + + verifyNotEnumerable(arguments, "0"); + + verifyNotConfigurable(arguments, "0"); }(0, 1, 2)); |