Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/defineProperty/15.2.3.6-4-45.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-45
6 description: >
7 Object.defineProperty - 'O' is the global object that uses
8 Object's [[GetOwnProperty]] method to access the 'name' property
9 (8.12.9 step 1)
10 includes: [propertyHelper.js]
11 ---*/
12
13 Object.defineProperty(this, "foo", {
14 value: 12,
15 configurable: true
16 });
17
18 verifyEqualTo(this, "foo", 12);
19
20 verifyNotWritable(this, "foo");
21
22 verifyNotEnumerable(this, "foo");
23
24 verifyConfigurable(this, "foo");