Skip to content

Promise.reject() hint cause endless loop #58903

Open
@Zrrrrrrg

Description

@Zrrrrrrg

Version

v24.3.0

Platform

Darwin HedeMac-mini.local 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:43 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T8132 arm64

Subsystem

No response

What steps will reproduce the bug?

In interactive CLI, type
let p = Promise.reject().
cause endlss hints output.

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

Every typing.

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

It should just do nothing?
The following code won't cause this problem
let p = Promise.reject(); p.

What do you see instead?

Nothing.

Additional information

It seems just about value hint system, some self reference?

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-bugIssues with confirmed bugs.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