Skip to content

await an expression that ends with at least two semicolons returns undefined #39932

@Mesteery

Description

@Mesteery

Version

16.8.0

Platform

No response

Subsystem

repl

What steps will reproduce the bug?

> await 1;;

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

with the top level await, and at least 2 semicolons.

What is the expected behavior?

> await 1;;
1

What do you see instead?

> await 1;;
undefined

Additional information

No response

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