| Index: test/mjsunit/compiler/regress-607493.js
|
| diff --git a/test/message/syntactic-tail-call-in-try-try-catch-finally.js b/test/mjsunit/compiler/regress-607493.js
|
| similarity index 58%
|
| copy from test/message/syntactic-tail-call-in-try-try-catch-finally.js
|
| copy to test/mjsunit/compiler/regress-607493.js
|
| index 202f4cc2bb4f369993ec235f6eb07f0229ac019c..40cad64f66c4f5f13f301ca78f8fa0e0543c35be 100644
|
| --- a/test/message/syntactic-tail-call-in-try-try-catch-finally.js
|
| +++ b/test/mjsunit/compiler/regress-607493.js
|
| @@ -2,20 +2,19 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -// Flags: --harmony-explicit-tailcalls
|
| +// Flags: --allow-natives-syntax
|
|
|
| -function f() {
|
| - return 1;
|
| -}
|
| +var a = [1];
|
|
|
| function g() {
|
| - try {
|
| + for (var x in a) {
|
| try {
|
| - f();
|
| + for (var i = 0; i < 10; i++) { %OptimizeOsr(); }
|
| + return;
|
| } catch(e) {
|
| - return continue f();
|
| + continue;
|
| }
|
| - } finally {
|
| - f();
|
| }
|
| }
|
| +
|
| +g();
|
|
|