Skip to content

Fix assertion functions accessed via wildcard imports#51324

Merged
jakebailey merged 4 commits intomicrosoft:mainfrom
jakebailey:fix-35004
Oct 28, 2022
Merged

Fix assertion functions accessed via wildcard imports#51324
jakebailey merged 4 commits intomicrosoft:mainfrom
jakebailey:fix-35004

Conversation

@jakebailey
Copy link
Copy Markdown
Member

Fixes #35004

This comes down to us resolving the symbol in some conditions but not others, which led to an inconsistent experience; these assertions were legal so long as the leftmost symbol wasn't a namespace import. If you imported a wildcard import via another module's named exports, it was legal, but using a wildcard import to access that same export was not.

Hoping to get this in to 4.9 so it can in be our LKG for 5.0; this will allow me to convert the Debug namespace into a module (which will then enable scope hoisting and perf boosts).

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Author: Team For Milestone Bug PRs that fix a bug with a specific milestone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Assertion functions don't work with wildcard imports

3 participants