Node: repl: SyntaxError thrown when entering bigint literal inside multi-line input

Created on 23 Feb 2020  路  12Comments  路  Source: nodejs/node

  • Version: v10.x
  • Platform: all
  • Subsystem: repl

What steps will reproduce the bug?

$ node
> function foo() {
... let n = 10n;
Thrown:
let n = 10n;
           ^

SyntaxError: Unexpected end of input
>

How often does it reproduce? Is there a required condition?

Reproduces all the time.

What is the expected behavior?

Should not cause an exception.

What do you see instead?

An exception.

Additional information

Works on master. Works when run from a script instead of the repl.

good first issue help wanted repl v10.x

All 12 comments

Looks like https://github.com/nodejs/node/pull/27400 would need to be backported?

@mscdex can I take up this?

does this still need work?

Is this issue still valid?

I wanna work on this. can anyone guide me for my first time contribution?

Maybe @BridgeAR ?

@HassanRazaMuhammadTufail please feel free to reach out to me through my twitter account or email. I'm happy to have a short video session to help you get this backported.

Does this issue still need input? I'm happy to get involved

@HassanRazaMuhammadTufail please feel free to reach out to me through my twitter account or email. I'm happy to have a short video session to help you get this backported.

@BridgeAR I have emailed you. kindly help me out in contributing.

Anyone still working on this issue?

It seems that this issue has already been solved
image

This only affects Node.js v10.x. I'm closing the issue because v10 is now in maintenance LTS mode and will only get critical fixes.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mcollina picture mcollina  路  3Comments

fanjunzhi picture fanjunzhi  路  3Comments

srl295 picture srl295  路  3Comments

sandeepks1 picture sandeepks1  路  3Comments

willnwhite picture willnwhite  路  3Comments