Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/Object/defineProperty/15.2.3.6-4-333-3.js

raw
1 // Copyright (c) 2012 Ecma International. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 es5id: 15.2.3.6-4-333-3
6 description: >
7 Object.defineProperty will update [[Value]] attribute of named
8 property 'P' successfully when [[Configurable]] attribute is
9 false, [[Writable]] attribute is true and 'O' is an Arguments
10 object (8.12.9 - step 10)
11 includes: [propertyHelper.js]
12 ---*/
13
14
15 var obj = (function() {
16 return arguments;
17 }());
18
19 Object.defineProperty(obj, "property", {
20 value: 1001,
21 writable: true,
22 configurable: false
23 });
24
25 Object.defineProperty(obj, "property", {
26 value: 1002
27 });
28
29 verifyEqualTo(obj, "property", 1002);
30
31 verifyWritable(obj, "property");
32
33 verifyNotEnumerable(obj, "property");
34
35 verifyNotConfigurable(obj, "property");