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

modify argument of mode for es2015 strict compatibility, fixes #234 #235

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

crashuniverse
Copy link

This fixes #234 SyntaxError: Octal literals are not allowed in strict mode.

The fix uses an option of supplying mode in a valid data type - string. This can be referred in source code for fs.open(). Keeping the argument as string makes the script pass es2015 strict validations and hence can be used by dependent packages like sendwithus in wider environments like node with es2015 strict mode.

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

Successfully merging this pull request may close these issues.

ES2015 strict mode - SyntaxError: Octal literals are not allowed in strict mode
1 participant