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

[bug] cannot run in strict mode #24

Closed
binarykitchen opened this issue May 14, 2013 · 2 comments
Closed

[bug] cannot run in strict mode #24

binarykitchen opened this issue May 14, 2013 · 2 comments
Labels
Milestone

Comments

@binarykitchen
Copy link

hello there

just tried to run my app in strict mode and found this error in the console:

.../node_modules/fs-extra/lib/create.js:14
      function makeFile() {
      ^^^^^^^^
SyntaxError: In strict mode code, functions can only be declared at top level or immediately within another function.

do you think you could refactor this to make it work for strict mode?

thanks

@jprichardson
Copy link
Owner

Ya, thanks for the report.

@binarykitchen
Copy link
Author

just grabbed from npm. looking fine now. thanks!

ovr pushed a commit to ovr/node-fs-extra that referenced this issue Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants