Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Unified Diff: test/mjsunit/arguments-indirect.js

Issue 1408983006: Remove obsolete 'arguments' local variable handling. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/accessors.cc ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/arguments-indirect.js
diff --git a/test/mjsunit/arguments-indirect.js b/test/mjsunit/arguments-indirect.js
index 2d37027f416564df7867bb961265c0815fadeb82..12cd5b4b3587e3c25bd0363ae9ea167421881608 100644
--- a/test/mjsunit/arguments-indirect.js
+++ b/test/mjsunit/arguments-indirect.js
@@ -35,8 +35,15 @@ function f2(x) {
g(f2);
}
+function f3(x) {
+ var a = arguments;
+ (function() { x++ })();
+ g(f3);
+}
function g(f) {
+ assertEquals("object", typeof f.arguments);
+ assertFalse(f.arguments === f.arguments);
assertEquals(3, f.arguments.length);
assertEquals(1, f.arguments[0]);
assertEquals(2, f.arguments[1]);
@@ -44,4 +51,5 @@ function g(f) {
}
f1(1,2,3);
-f2(0,2,3);
+f2(1,2,3);
+f3(1,2,3);
« no previous file with comments | « src/accessors.cc ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698