Skip to content

handleNew regression: knownBuiltIns are wrapped #417

Open
@rachitnigam

Description

With handleNew: wrapper, this example:

new WeakMap

turns into:

handleNew.box($S.g.WeakMap)

while the expected behavior is leaving the code alone.

The issue is that useGlobalObject breaks the logic used to leave the code unwrapped since WeakMap turns to $S.g.WeakMap.

This works fine for most built-ins, but breaks when I tried to use Event.

P.S. The logic here is redundant.

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