Skip to content

repl: exponentiation operator SyntaxError swallowed #7372

@Trott

Description

@Trott
  • Version: 6.2.2
  • Platform: OS X
  • Subsystem: repl

Use of (currently unsupported) exponentiation operator should throw SyntaxError rather than putting the user into multiline mode.

Expected:

$ node
> 2 ** 3
SyntaxError: Unexpected token *

Actual:

$ node
> 2 ** 3
... 
... 
... 
... 

Refs: #7332
Refs: https://tc39.github.io/ecma262/2016/#sec-exp-operator

Metadata

Metadata

Assignees

No one assigned

    Labels

    replIssues and PRs related to the REPL subsystem.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions