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

Unified Diff: test/mjsunit/regress/regress-386034.js

Issue 371323002: Version 3.26.31.11 (merged r21859, r21907) (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.26
Patch Set: Created 6 years, 5 months 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 | « test/mjsunit/regress/regress-385054.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-386034.js
diff --git a/test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js b/test/mjsunit/regress/regress-386034.js
similarity index 58%
copy from test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js
copy to test/mjsunit/regress/regress-386034.js
index 658d776ea3b80cd00d256a5514603bdb3df1f179..d770ce91bd64ad6e1307b1b699948b2513359efc 100644
--- a/test/mjsunit/regress/regress-no-dummy-use-for-arguments-object.js
+++ b/test/mjsunit/regress/regress-386034.js
@@ -4,18 +4,16 @@
// Flags: --allow-natives-syntax
-function g() {
- arguments.length;
+function f(x) {
+ var v = x;
+ for (i = 0; i < 1; i++) {
+ v.apply(this, arguments);
+ }
}
-var global = "";
+function g() {}
-function f() {
- global.dummy = this;
- g({});
-}
-
-f();
-f();
+f(g);
+f(g);
%OptimizeFunctionOnNextCall(f);
-f();
+assertThrows(function() { f('----'); }, TypeError);
« no previous file with comments | « test/mjsunit/regress/regress-385054.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698