diff options
Diffstat (limited to 'test/built-ins/Object/defineProperties/15.2.3.7-6-a-86.js')
-rw-r--r-- | test/built-ins/Object/defineProperties/15.2.3.7-6-a-86.js | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86.js b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86.js index 786272d8e..d4c37c42b 100644 --- a/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86.js +++ b/test/built-ins/Object/defineProperties/15.2.3.7-6-a-86.js @@ -10,30 +10,29 @@ description: > Object.defineProperties will not throw TypeError when P.configurable is false, both properties.[[Set]] and P.[[Set]] are two objects which refer to the same object (8.12.9 step 11.a.i) -includes: - - runTestCase.js - - accessorPropertyAttributesAreCorrect.js +includes: [propertyHelper.js] ---*/ -function testcase() { - var obj = {}; +var obj = {}; - function set_func(value) { - obj.setVerifyHelpProp = value; - } +function set_func(value) { + obj.setVerifyHelpProp = value; +} - Object.defineProperty(obj, "foo", { - set: set_func, - configurable: false - }); - - Object.defineProperties(obj, { - foo: { - set: set_func - } - }); - return accessorPropertyAttributesAreCorrect(obj, "foo", undefined, set_func, "setVerifyHelpProp", false, false); +Object.defineProperty(obj, "foo", { + set: set_func, + configurable: false +}); +Object.defineProperties(obj, { + foo: { + set: set_func } -runTestCase(testcase); +}); +verifyWritable(obj, "foo", "setVerifyHelpProp"); + +verifyNotEnumerable(obj, "foo"); + +verifyNotConfigurable(obj, "foo"); + |