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

Unified Diff: test/message/syntactic-tail-call-in-try-catch-finally.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
Index: test/message/syntactic-tail-call-in-try-catch-finally.js
diff --git a/test/mjsunit/regress/regress-crbug-595657.js b/test/message/syntactic-tail-call-in-try-catch-finally.js
similarity index 58%
copy from test/mjsunit/regress/regress-crbug-595657.js
copy to test/message/syntactic-tail-call-in-try-catch-finally.js
index 653259781be24ec1acf1d5e2aa4f4de2f361d3ec..f2edf6e183e2fe17867a21f067c54e5fc7dafe17 100644
--- a/test/mjsunit/regress/regress-crbug-595657.js
+++ b/test/message/syntactic-tail-call-in-try-catch-finally.js
@@ -2,14 +2,18 @@
// 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();
+ f();
} catch(e) {
- /(\2)(a)/.test("");
+ return continue f();
+ } finally {
+ f();
}
}
-
-test();
« no previous file with comments | « test/message/syntactic-tail-call-in-try.out ('k') | test/message/syntactic-tail-call-in-try-catch-finally.out » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698