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-333-8.js
blob1e440f485bfd011bbd959292c5b86885d90b9bc9
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-333-8
6 description: >
7     Object.defineProperty will update [[Value]] attribute of indexed
8     property 'P'successfully when [[Configurable]] attribute is false,
9     [[Writable]] attribute is true and 'O' is an Arguments object
10     (8.12.9 - step 10)
11 includes: [propertyHelper.js]
12 ---*/
15 var obj = (function() {
16   return arguments;
17 }());
19 Object.defineProperty(obj, "0", {
20   value: 1001,
21   writable: true,
22   configurable: false
23 });
25 Object.defineProperty(obj, "0", {
26   value: 1002
27 });
29 verifyProperty(obj, "0", {
30   value: 1002,
31   writable: true,
32   enumerable: false,
33   configurable: false,
34 });
36 reportCompare(0, 0);