Skip to content

Preview of code execution results in REPL go wrong when encountering large bigint operation #59361

@Withered-Flower-0422

Description

@Withered-Flower-0422

Version

v24.5.0

Platform

Microsoft Windows NT 10.0.26100.0 x64

Subsystem

No response

What steps will reproduce the bug?

  1. Enter node repl.
  2. Calculate some super large bigint operation, such as 4n ** 4000000n.
  3. The preview of the result goes wrong: 0x10000000000000000000000000000000000000000000000...

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

Always.

What is the expected behavior? Why is that the expected behavior?

The preview of the result can display correctly. For 4n ** 4000000n, display 9232341268346647528563879137021076647837054441642142807....

What do you see instead?

The preview of the result displays 0x10000000000000000000000000000000000000000000000...

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIssues that look for answers.replIssues and PRs related to the REPL subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions