Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/defineProperty/15.2.3.6-4-434.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-434
6 description: >
7 ES5 Attributes - property ([[Get]] is undefined, [[Set]] is
8 undefined, [[Enumerable]] is true, [[Configurable]] is false) is
9 undeletable
10 includes: [propertyHelper.js]
11 ---*/
12
13 var obj = {};
14
15 Object.defineProperty(obj, "prop", {
16 get: undefined,
17 set: undefined,
18 enumerable: true,
19 configurable: false
20 });
21
22 assert(obj.hasOwnProperty("prop"));
23
24 var desc = Object.getOwnPropertyDescriptor(obj, "prop");
25
26 assert.sameValue(desc.configurable, false);
27
28 verifyNotConfigurable(obj, "prop");