Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tail Calls: Non-simple parameter in strict mode #125

Open
guilbep opened this issue Dec 5, 2017 · 2 comments
Open

Tail Calls: Non-simple parameter in strict mode #125

guilbep opened this issue Dec 5, 2017 · 2 comments

Comments

@guilbep
Copy link

guilbep commented Dec 5, 2017

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);
@jgoc
Copy link

jgoc commented Apr 17, 2018

Same output.
image

@baeharam
Copy link

baeharam commented Mar 9, 2020

Same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants