Bug 1892041 - Part 2: Update test262. r=spidermonkey-reviewers,dminor
[gecko.git] / js / src / tests / test262 / built-ins / Object / defineProperty / 15.2.3.6-4-292-1.js
blob8eb28bae83c691831ac5694c9bcf98484e2f673e
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-292-1
6 description: >
7     Object.defineProperty - 'O' is an Arguments object of a function
8     that has formal parameters, 'name' is own property of 'O' which is
9     also defined in [[ParameterMap]] of 'O', and 'desc' is data
10     descriptor, test updating multiple attribute values of 'name'
11     (10.6 [[DefineOwnProperty]] step 3 and 5.b)
12 includes: [propertyHelper.js]
13 flags: [noStrict]
14 ---*/
16 (function(a, b, c) {
17   Object.defineProperty(arguments, "0", {
18     value: 20,
19     writable: false,
20     enumerable: false,
21     configurable: false
22   });
24   if (a !== 20) {
25     throw new Test262Error('Expected a === 20, actually ' + a);
26   }
28   verifyProperty(arguments, "0", {
29     value: 20,
30     writable: false,
31     enumerable: false,
32     configurable: false,
33   });
34 }(0, 1, 2));
36 reportCompare(0, 0);