Skip to content
New issue

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

No dynamic evaluation in /lite mode #148

Closed
wants to merge 2 commits into from
Closed

Conversation

rbuckton
Copy link
Owner

This removes the sloppy-mode lookup for the global object from /lite-mode, which tried to use new Function or indirect eval to obtain globalThis. Instead users of /lite-mode will need to supply their own polyfill for globalThis if the other usual suspects (global, self, or just this) don't work. This behavior is consistent with /lite-mode's behavior of avoiding other polyfills for Map/Set/WeakMap.

This does not affect the default export for reflect-metadata.

Fixes #147
Supersedes #141

@rbuckton rbuckton closed this Dec 13, 2023
@rbuckton rbuckton deleted the lite-mode-no-dynamic-eval branch December 13, 2023 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove dynamic evaluation to access globalThis in "lite" mode
1 participant