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

Unified Diff: test/message/syntactic-tail-call-in-try-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-try-catch-finally.js
diff --git a/test/mjsunit/regress/regress-crbug-603463.js b/test/message/syntactic-tail-call-in-try-try-catch-finally.js
similarity index 52%
copy from test/mjsunit/regress/regress-crbug-603463.js
copy to test/message/syntactic-tail-call-in-try-try-catch-finally.js
index 20bfae65c54fa744d2470903fc92749f99726d67..202f4cc2bb4f369993ec235f6eb07f0229ac019c 100644
--- a/test/mjsunit/regress/regress-crbug-603463.js
+++ b/test/message/syntactic-tail-call-in-try-try-catch-finally.js
@@ -2,15 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-function load(a, i) {
- return a[i];
-}
+// Flags: --harmony-explicit-tailcalls
function f() {
- return load(new Proxy({}, {}), undefined);
+ return 1;
}
-f();
-f();
-load([11, 22, 33], 0);
-f();
+function g() {
+ try {
+ try {
+ f();
+ } catch(e) {
+ return continue f();
+ }
+ } finally {
+ f();
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698