Backed out 3 changesets (bug 1892041) for causing failures on async-module-does-not...
[gecko.git] / js / src / tests / test262 / built-ins / Object / defineProperty / 15.2.3.6-4-277.js
blob825c594a6b8b2d00a0e4535b28fa8a556ec378c1
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.6-4-277
6 description: >
7     Object.defineProperty -  'O' is an Array, 'name' is generic
8     property that won't exist on 'O', and 'desc' is data descriptor,
9     test 'name' is defined in 'O' with all correct attribute values
10     (15.4.5.1 step 5)
11 includes: [propertyHelper.js]
12 ---*/
15 var arrObj = [];
17 Object.defineProperty(arrObj, "property", {
18   value: 12,
19   writable: true,
20   enumerable: true,
21   configurable: true
22 });
24 verifyEqualTo(arrObj, "property", 12);
26 verifyWritable(arrObj, "property");
28 verifyEnumerable(arrObj, "property");
30 verifyConfigurable(arrObj, "property");
32 reportCompare(0, 0);