Skip to content

Can we replace the constructor check in PromiseResolve with a prototype check #3662

@mgaudet

Description

@mgaudet

(Followup to the discussion July 29, 2025 in Plenary)

Kevin Gibbons suggests that the fastpath in PromiseResolve which depends on the constructor property check could probably be replaced with a prototype check.

I think this would be a good change if we could do it, though I think for SpiderMonkey it might be performance neutral in general.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions