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-84.js
blob873bfc248a80d52ab3d5b0b07ea1ab41e0f83eb5
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-84
6 description: >
7     Object.defineProperties will not throw TypeError when
8     P.configurable is false, P.writalbe is false, properties.value and
9     P.value are two Objects refer to the same object (8.12.9 step
10     10.a.ii.1)
11 includes: [propertyHelper.js]
12 ---*/
15 var obj = {};
17 var obj1 = {
18   length: 10
21 Object.defineProperty(obj, "foo", {
22   value: obj1,
23   writable: false,
24   configurable: false
25 });
27 Object.defineProperties(obj, {
28   foo: {
29     value: obj1
30   }
31 });
33 verifyProperty(obj, "foo", {
34   value: obj1,
35   writable: false,
36   enumerable: false,
37   configurable: false,
38 });
40 reportCompare(0, 0);