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(); |
+ } |
+} |