Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/defineProperties/15.2.3.7-6-a-302.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-302
6 description: >
7 Object.defineProperties - 'O' is an Arguments object, 'P' is
8 generic property, and 'desc' is data descriptor, test 'P' is
9 defined in 'O' with all correct attribute values (10.6
10 [[DefineOwnProperty]] step 4)
11 includes: [propertyHelper.js]
12 ---*/
13
14 var arg = (function() {
15 return arguments;
16 }(1, 2, 3));
17
18 Object.defineProperties(arg, {
19 "genericProperty": {
20 value: 1001,
21 writable: true,
22 enumerable: true,
23 configurable: true
24 }
25 });
26
27 verifyEqualTo(arg, "genericProperty", 1001);
28
29 verifyWritable(arg, "genericProperty");
30
31 verifyEnumerable(arg, "genericProperty");
32
33 verifyConfigurable(arg, "genericProperty");