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

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

Issue 755333003: Do not try to inline if the function has an illegal redeclaration. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix license Created 6 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/hydrogen.cc ('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-436896.js
diff --git a/test/mjsunit/regress/regress-355486.js b/test/mjsunit/regress/regress-436896.js
similarity index 64%
copy from test/mjsunit/regress/regress-355486.js
copy to test/mjsunit/regress/regress-436896.js
index 55362a13416335b72bfa1ff92bc29f7a04edbd65..344a7a3049305a655b74f0ca56ea5ecba3bbf58c 100644
--- a/test/mjsunit/regress/regress-355486.js
+++ b/test/mjsunit/regress/regress-436896.js
@@ -4,10 +4,14 @@
// Flags: --allow-natives-syntax
-function f() { var v = arguments[0]; }
-function g() { f(); }
+function f(x) {
+ const x = 0;
+ return x;
+}
+
+function g(x) {
+ return f(x);
+}
-g();
-g();
%OptimizeFunctionOnNextCall(g);
-g();
+assertThrows(function() { g(42); }, TypeError);
« no previous file with comments | « src/hydrogen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698