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-49.js
blob73beacbde055f6b473cf577bf0b9c1048c6a28fa
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-49
6 description: >
7     Object.defineProperties - both desc.value and P.value are two
8     strings which have same length and same characters in
9     corresponding positions (8.12.9 step 6)
10 includes: [propertyHelper.js]
11 ---*/
14 var obj = {};
16 var desc = {
17   value: "abcd"
19 Object.defineProperty(obj, "foo", desc);
21 Object.defineProperties(obj, {
22   foo: {
23     value: "abcd"
24   }
25 });
27 verifyProperty(obj, "foo", {
28   value: "abcd",
29   writable: false,
30   enumerable: false,
31   configurable: false,
32 });
34 reportCompare(0, 0);