BackwardsGraph needs to consider back edges as the backward's root successor
[WebKit-https.git] / JSTests / es6 / proper_tail_calls_tail_call_optimisation_direct_recursion.js
1 function test() {
2
3 "use strict";
4 return (function f(n){
5   if (n <= 0) {
6     return  "foo";
7   }
8   return f(n - 1);
9 }(1e6)) === "foo";
10       
11 }
12
13 if (!test())
14     throw new Error("Test failed");
15