Debian Codegraph @

js/src/tests/test262/built-ins/Object/defineProperties/15.2.3.7-6-a-28.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-28
6 description: >
7 Object.defineProperties - 'P' doesn't exist in 'O', test
8 [[Writable]] of 'P' is set as false value if absent in data
9 descriptor 'desc' (8.12.9 step 4.a.i)
10 includes: [propertyHelper.js]
11 ---*/
12
13 var obj = {};
14
15 Object.defineProperties(obj, {
16 prop: {
17 value: 1001
18 }
19 });
20
21 verifyProperty(obj, "prop", {
22 value: 1001,
23 writable: false,
24 });
25
26 reportCompare(0, 0);