Backed out 3 changesets (bug 1892041) for causing failures on async-module-does-not...
[gecko.git] / js / src / tests / test262 / built-ins / Object / defineProperties / 15.2.3.7-6-a-38.js
blobd687d6345e8a52315d44c07461ed65e2faa9a958
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-38
6 description: >
7     Object.defineProperties - 'P' exists in 'O', test 'P' makes no
8     change if 'desc' is generic descriptor without any attribute
9     (8.12.9 step 5)
10 includes: [propertyHelper.js]
11 ---*/
14 var obj = {};
15 obj.foo = 100; // default value of attributes: writable: true, configurable: true, enumerable: true
17 Object.defineProperties(obj, {
18   foo: {}
19 });
20 verifyEqualTo(obj, "foo", 100);
22 verifyWritable(obj, "foo");
24 verifyEnumerable(obj, "foo");
26 verifyConfigurable(obj, "foo");
28 reportCompare(0, 0);