Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Object / defineProperties / 15.2.3.7-6-a-75.js
blobb734bd9f6ff13cf88e2dde0cbb8fc2b6c549dcf3
1 // Copyright (c) 2012 Ecma International.  All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /*---
5 es5id: 15.2.3.7-6-a-75
6 description: >
7     Object.defineProperties will not throw TypeError if P.configurable
8     is false, P.writalbe is false, P.value is NaN and properties.value
9     is NaN (8.12.9 step 10.a.ii.1)
10 includes: [propertyHelper.js]
11 ---*/
14 var obj = {};
15 var accessed = false;
17 Object.defineProperty(obj, "foo", {
18   value: NaN,
19   writable: false,
20   configurable: false
21 });
23 Object.defineProperties(obj, {
24   foo: {
25     value: NaN
26   }
27 });
29 verifyProperty(obj, "foo", {
30   writable: false,
31   enumerable: false,
32   configurable: false,
33 });
35 reportCompare(0, 0);