Index: test/mjsunit/regress/regress-70066.js |
diff --git a/test/mjsunit/regress/regress-70066.js b/test/mjsunit/regress/regress-70066.js |
index b8386a706e6d546e437794f18fd450eaf596c430..01c2f4f3a31c89c5f0dfe4808a7886035f647fa9 100644 |
--- a/test/mjsunit/regress/regress-70066.js |
+++ b/test/mjsunit/regress/regress-70066.js |
@@ -57,21 +57,18 @@ assertEquals("2:false", test2(), "test2"); |
assertEquals(0, x, "test2"); // Global x is undisturbed. |
-// Delete on an argument. This hits the same code paths as test5 because |
-// 'with' forces all parameters to be indirected through the arguments |
-// object. |
+// Delete on a parameter. |
function test3(value) { |
var status; |
with ({}) { status = delete value; } |
return value + ":" + status; |
} |
-assertEquals("undefined:true", test3(3), "test3"); |
+assertEquals("3:false", test3(3), "test3"); |
assertEquals(0, x, "test3"); // Global x is undisturbed. |
-// Delete on an argument from an outer context. This hits the same code |
-// path as test2. |
+// Delete on a parameter found in an outer context. |
function test4(value) { |
function f() { |
with ({}) { return delete value; } |
@@ -84,15 +81,14 @@ assertEquals("4:false", test4(4), "test4"); |
assertEquals(0, x, "test4"); // Global x is undisturbed. |
-// Delete on an argument found in the arguments object. Such properties are |
-// normally DONT_DELETE in JavaScript but deletion is allowed by V8. |
+// Delete on a parameter, arguments object should be unaffected. |
function test5(value) { |
var status; |
with ({}) { status = delete value; } |
return arguments[0] + ":" + status; |
} |
-assertEquals("undefined:true", test5(5), "test5"); |
+assertEquals("5:false", test5(5), "test5"); |
assertEquals(0, x, "test5"); // Global x is undisturbed. |
function test6(value) { |
@@ -103,7 +99,7 @@ function test6(value) { |
return arguments[0] + ":" + status; |
} |
-assertEquals("undefined:true", test6(6), "test6"); |
+assertEquals("6:false", test6(6), "test6"); |
assertEquals(0, x, "test6"); // Global x is undisturbed. |