Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/defineProperties/15.2.3.7-6-a-33.js

raw
1 // Copyright (c) 2012 Ecma International. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 es5id: 15.2.3.7-6-a-33
6 description: >
7 Object.defineProperties - 'P' doesn't exist in 'O', test [[Get]]
8 of 'P' is set as undefined value if absent in accessor descriptor
9 'desc' (8.12.9 step 4.b)
10 includes: [propertyHelper.js]
11 ---*/
12
13 var obj = {};
14 var setFun = function(value) {
15 obj.setVerifyHelpProp = value;
16 };
17
18 Object.defineProperties(obj, {
19 prop: {
20 set: setFun,
21 enumerable: true,
22 configurable: true
23 }
24 });
25 verifyWritable(obj, "prop", "setVerifyHelpProp");
26
27 verifyEnumerable(obj, "prop");
28
29 verifyConfigurable(obj, "prop");