ericmckean / traceur-compiler

Automatically exported from code.google.com/p/traceur-compiler
Apache License 2.0
0 stars 0 forks source link

Proper tail calls #215

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The following gives a "too much recursion" error:

function sumTo(n, accumulator = 0) {
  return n === 0 ? accumulator : sumTo(n - 1, accumulator);
}
sumTo(123456);

Original issue reported on code.google.com by dome...@domenicdenicola.com on 4 Mar 2013 at 6:24