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

Unified Diff: test/message/syntactic-tail-call-in-try.js

Issue 1917993004: [es8] Initial set of changes to support syntactic tail calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressing comments Created 4 years, 8 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 | « src/parsing/preparser.cc ('k') | test/message/syntactic-tail-call-in-try.out » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/message/syntactic-tail-call-in-try.js
diff --git a/test/mjsunit/regress/regress-crbug-595657.js b/test/message/syntactic-tail-call-in-try.js
similarity index 64%
copy from test/mjsunit/regress/regress-crbug-595657.js
copy to test/message/syntactic-tail-call-in-try.js
index 653259781be24ec1acf1d5e2aa4f4de2f361d3ec..97eb4f757ab27e898e888078a46b80a8df61097a 100644
--- a/test/mjsunit/regress/regress-crbug-595657.js
+++ b/test/message/syntactic-tail-call-in-try.js
@@ -2,14 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// Flags: --stack-size=100
+// Flags: --harmony-explicit-tailcalls
-function test() {
+function f() {
+ return 1;
+}
+
+function g() {
try {
- test();
+ return continue f();
} catch(e) {
- /(\2)(a)/.test("");
}
}
-
-test();
« no previous file with comments | « src/parsing/preparser.cc ('k') | test/message/syntactic-tail-call-in-try.out » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698