mapped-arguments-nonconfigurable-delete-1.js (623B)
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 Mapping works when property is non-configurable, arguments property 8 was not deleted. [[Delete]] operation returns false. 9 flags: [noStrict] 10 ---*/ 11 12 function argumentsAndDelete(a) { 13 Object.defineProperty(arguments, "0", {configurable: false}); 14 15 assert.sameValue(delete arguments[0], false); 16 assert.sameValue(a, 1); 17 assert.sameValue(arguments[0], 1); 18 } 19 argumentsAndDelete(1); 20 21 reportCompare(0, 0);