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

ES2015 strict mode - SyntaxError: Octal literals are not allowed in strict mode #234

Open
crashuniverse opened this issue Mar 19, 2016 · 1 comment · May be fixed by #235
Open

ES2015 strict mode - SyntaxError: Octal literals are not allowed in strict mode #234

crashuniverse opened this issue Mar 19, 2016 · 1 comment · May be fixed by #235

Comments

@crashuniverse
Copy link

We see a syntax error in node ES2015 strict mode. The error says:

/node_modules/restler/lib/multipartform.js:112
      fs.open(this.value.path, "r", 0666, function (err, fd) {
                                    ^^^^
SyntaxError: Octal literals are not allowed in strict mode.

It is important for us to fix it for staying compatible with latest modes of running the app. The moment I spotted this is because I use sendwithus in an app that has dependency on this package.

ES2015 strict mode is getting popular. I run my app using node --use_strict app.js for strict mode, that gives access to new features like let and many others.

@mstumpf818
Copy link

I'm also having this 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

Successfully merging a pull request may close this issue.

2 participants