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-281.js
blob4df7240d9cf8f2199fd7540556afcbc51aa04683
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-281
6 description: >
7     Object.defineProperties - 'O' is an Arguments object, 'P' is own
8     data property of 'O' which is also defined in [[ParameterMap]] of
9     'O', and 'desc' is data descriptor, test updating multiple
10     attribute values of 'P' (10.6 [[DefineOwnProperty]] step 3)
11 includes: [propertyHelper.js]
12 ---*/
15 var arg;
17 (function fun(a, b, c) {
18   arg = arguments;
19 }(0, 1, 2));
21 Object.defineProperties(arg, {
22   "0": {
23     value: 20,
24     writable: false,
25     enumerable: false,
26     configurable: false
27   }
28 });
30 verifyEqualTo(arg, "0", 20);
32 verifyNotWritable(arg, "0");
34 verifyNotEnumerable(arg, "0");
36 verifyNotConfigurable(arg, "0");
38 reportCompare(0, 0);