Debian Codegraph @

js/src/tests/test262/language/arguments-object/mapped/nonconfigurable-descriptors-with-param-assign.js

raw
1 // Copyright (C) 2017 Caio Lima. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 description: Property descriptor of mapped arguments object with non-configurable property
6 info: |
7 Mapping keep working when property is set to non-configurable, and its
8 descriptor needs to change properly.
9 flags: [noStrict]
10 esid: sec-arguments-exotic-objects-defineownproperty-p-desc
11 includes: [propertyHelper.js]
12 ---*/
13
14 function argumentsAndSetMutableBinding(a) {
15 Object.defineProperty(arguments, "0", {configurable: false});
16
17 a = 2;
18
19 verifyProperty(arguments, "0", {
20 value: 2,
21 writable: true,
22 enumerable: true,
23 configurable: false,
24 });
25 }
26 argumentsAndSetMutableBinding(1);
27
28
29 reportCompare(0, 0);