1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/tests/js1_8_5/regress/regress-551763-0.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,27 @@ 1.4 +(function() { 1.5 + var o = {'arguments': 42}; 1.6 + with (o) { // Definitely forces heavyweight. 1.7 + // Note syntax is not a property access. 1.8 + reportCompare(delete arguments, true, 1.9 + "arguments property deletion within with block"); 1.10 + } 1.11 + reportCompare('arguments' in o, false, 1.12 + "property deletion observable"); 1.13 +})(); 1.14 + 1.15 +(function() { 1.16 + var o = {'arguments': 42}; 1.17 + delete o.arguments; 1.18 + reportCompare('arguments' in o, false, 1.19 + "arguments property deletion with property access syntax"); 1.20 +})(); 1.21 + 1.22 +(function() { 1.23 + var arguments = 42; // Forces heavyweight. 1.24 + reportCompare(delete arguments, false, 1.25 + "arguments variable"); 1.26 +})(); 1.27 + 1.28 +(function() { 1.29 + reportCompare(delete arguments, false, "arguments object"); 1.30 +})();