Chromium Code Reviews| Index: test/mjsunit/es7/syntactic-tail-call.js |
| diff --git a/test/mjsunit/es7/syntactic-tail-call.js b/test/mjsunit/es7/syntactic-tail-call.js |
| index b65fc450590afff8f051e1323dad6a4ec38ceede..6373717191d1486ca27cb0768f0ba297cce8d809 100644 |
| --- a/test/mjsunit/es7/syntactic-tail-call.js |
| +++ b/test/mjsunit/es7/syntactic-tail-call.js |
| @@ -223,15 +223,15 @@ function f_153(expected_call_stack, a) { |
| // Tail calling via various expressions. |
| (function() { |
| function g1(a) { |
| - return continue f([f, g1, test], false) || f([f, test], true); |
| + return f([f, g1, test], false) || continue f([f, test], true); |
| } |
| function g2(a) { |
| - return continue f([f, g2, test], true) && f([f, test], true); |
| + return f([f, g2, test], true) && continue f([f, test], true); |
| } |
| function g3(a) { |
| - return continue f([f, g3, test], 13), f([f, test], 153); |
| + return f([f, g3, test], 13), continue f([f, test], 153); |
| } |
| function test() { |
| @@ -404,10 +404,9 @@ function f_153(expected_call_stack, a) { |
| } |
| function g3(a) { |
| - var closure = () => continue f([f, closure, test], true) |
| - ? f_153([f_153, test]) |
| - : f_153([f_153, test]); |
| - |
| + var closure = () => f([f, closure, test], true) |
| + ? continue f_153([f_153, test]) |
| + : f_153([f_153, test]); |
|
rossberg
2016/05/02 10:59:40
Shouldn't you need a `continue` here, too, to be e
Igor Sheludko
2016/05/04 10:28:55
The call f([f, closure, test], true) returns true.
|
| return continue closure(); |
| } |