Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/defineProperty/15.2.3.6-4-63.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-63
6 description: >
7 Object.defineProperty - both desc.value and name.value are NaN
8 (8.12.9 step 6)
9 includes: [propertyHelper.js]
10 ---*/
11
12 var obj = {};
13
14 Object.defineProperty(obj, "foo", {
15 value: NaN
16 });
17
18 Object.defineProperty(obj, "foo", {
19 value: NaN
20 });
21
22 assert.sameValue(obj.foo, NaN);
23
24 verifyNotWritable(obj, "foo");
25
26 verifyNotEnumerable(obj, "foo");
27
28 verifyNotConfigurable(obj, "foo");