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

"Octal literals are not allowed in strict mode." is not a synax error #2684

Closed
tom-- opened this issue Sep 4, 2015 · 6 comments
Closed

"Octal literals are not allowed in strict mode." is not a synax error #2684

tom-- opened this issue Sep 4, 2015 · 6 comments
Labels
v8 engine Issues and PRs related to the V8 dependency.

Comments

@tom--
Copy link

tom-- commented Sep 4, 2015

 SyntaxError: Octal literals are not allowed in strict mode 

The error message is not technically correct. Octal, hex, decimal etc. are differences in morphology, not syntax. So it is a grammar error and, more specifically, it is a morphology error but it is not a syntax error.

@Fishrock123 Fishrock123 added the v8 engine Issues and PRs related to the V8 dependency. label Sep 4, 2015
@cjihrig
Copy link
Contributor

cjihrig commented Sep 4, 2015

The error comes from V8 not from node. Sadly, there is no MorphologyError built into JavaScript.

@cjihrig cjihrig closed this as completed Sep 4, 2015
@Fishrock123
Copy link
Contributor

Oooooookay.

@thefourtheye
Copy link
Contributor

@tom-- Node.js uses v8 JavaScript engine and the error is thrown when v8 parses your source code. You might want take this up with the v8 project.

@Trott
Copy link
Member

Trott commented Sep 4, 2015

MorphologyError. WANT!!!!

@irzaarivin

This comment was marked as off-topic.

@Trott

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v8 engine Issues and PRs related to the V8 dependency.
Projects
None yet
Development

No branches or pull requests

6 participants