Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/defineProperty/15.2.3.6-4-289.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.6-4-289
6 description: >
7 Object.defineProperty - 'O' is an Arguments object, 'name' is own
8 property of 'O', and is deleted afterwards, and 'desc' is data
9 descriptor, test 'name' is redefined in 'O' with all correct
10 attribute values (10.6 [[DefineOwnProperty]] step 3)
11 includes: [propertyHelper.js]
12 ---*/
13
14 (function() {
15 delete arguments[0];
16 Object.defineProperty(arguments, "0", {
17 value: 10,
18 writable: true,
19 enumerable: true,
20 configurable: true
21 });
22 verifyEqualTo(arguments, "0", 10);
23
24 verifyWritable(arguments, "0");
25
26 verifyEnumerable(arguments, "0");
27
28 verifyConfigurable(arguments, "0");
29 }(0, 1, 2));