mapped-arguments-nonconfigurable-1.js (531B)
1 // Copyright (C) 2015 André Bargull. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 info: Mapped arguments object with non-configurable property 6 description: > 7 Mapped value is not changed when property was made non-configurable. 8 flags: [noStrict] 9 ---*/ 10 11 function argumentsNonConfigurable(a) { 12 Object.defineProperty(arguments, "0", {configurable: false}); 13 14 assert.sameValue(a, 1); 15 assert.sameValue(arguments[0], 1); 16 } 17 argumentsNonConfigurable(1); 18 19 reportCompare(0, 0);