Skip to content

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

Description

@tom--
 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.

Activity

  1. cjihrig commented on Sep 4, 2015

    @cjihrig
    Contributor

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

  2. Fishrock123 commented on Sep 4, 2015

    @Fishrock123
    Contributor

    Oooooookay.

  3. thefourtheye commented on Sep 4, 2015

    @thefourtheye
    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.

  4. Trott commented on Sep 4, 2015

    @Trott
    Member

    MorphologyError. WANT!!!!

  5. irzaarivin commented on Nov 16, 2023

    @irzaarivin
  6. Trott commented on Nov 16, 2023

    @Trott
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    v8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions