Open
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
Labels
No labels