es6features icon indicating copy to clipboard operation
es6features copied to clipboard

Tail Calls: Non-simple parameter in strict mode

Open guilbep opened this issue 8 years ago • 2 comments

Should we keep the use strict statement?

repl: Non-simple parameter in strict mode (1:22)
> 1 | function factorial(n, acc = 1) {
    |                       ^
  2 |     'use strict';
  3 |     if (n <= 1) return acc;
  4 |     return factorial(n - 1, n * acc);

guilbep avatar Dec 05 '17 11:12 guilbep

Same output. image

jgoc avatar Apr 17 '18 02:04 jgoc

Same issue

baeharam avatar Mar 09 '20 01:03 baeharam