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-354-3.js
blobfecfdd55a4f715d59b19e49e47b88c91b6b35f00
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-354-3
6 description: >
7     Object.defineProperty will update [[Value]] attribute successfully
8     when [[Configurable]] attribute is true and [[Writable]] attribute
9     is false, 'O' is an Arguments object (8.12.9 - step Note)
10 includes: [propertyHelper.js]
11 ---*/
14 var obj = (function() {
15   return arguments;
16 }());
18 Object.defineProperty(obj, "property", {
19   value: 1001,
20   writable: false,
21   configurable: true
22 });
24 Object.defineProperty(obj, "property", {
25   value: 1002
26 });
28 verifyEqualTo(obj, "property", 1002);
30 verifyNotWritable(obj, "property");
32 verifyNotEnumerable(obj, "property");
34 verifyConfigurable(obj, "property");
36 reportCompare(0, 0);