nonconfigurable-descriptors-basic.js (715B)
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: Mapped arguments object with non-configurable property property descriptor behavior 6 info: | 7 Descriptor of a mapped value is updated when property is made non-configurable. 8 flags: [noStrict] 9 esid: sec-arguments-exotic-objects-defineownproperty-p-desc 10 includes: [propertyHelper.js] 11 ---*/ 12 13 function argumentsNonConfigurable(a) { 14 Object.defineProperty(arguments, "0", {configurable: false}); 15 16 verifyProperty(arguments, "0", { 17 value: 1, 18 writable: true, 19 enumerable: true, 20 configurable: false, 21 }); 22 } 23 argumentsNonConfigurable(1); 24 25 reportCompare(0, 0);