We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With handleNew: wrapper, this example:
handleNew: wrapper
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.
useGlobalObject
WeakMap
$S.g.WeakMap
This works fine for most built-ins, but breaks when I tried to use Event.
Event
P.S. The logic here is redundant.
The text was updated successfully, but these errors were encountered:
What do you mean by "breaks when I tried to use Event"? Do you mean adding Event to the runner's .g object doesn't work?
.g
Sorry, something went wrong.
Yes
No branches or pull requests
With
handleNew: wrapper
, this example:turns into:
while the expected behavior is leaving the code alone.
The issue is that
useGlobalObject
breaks the logic used to leave the code unwrapped sinceWeakMap
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.
The text was updated successfully, but these errors were encountered: