-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
Import namespace exports should be immutable #2456
Comments
revert fix for #2456 'Import namespace exports should be immutable'
Why was the fix for this reverted? |
it breaks existing module import syntax. The fix did not handle all cases correctly. we probably need to do it "right" by adding a readonly flag on the type and checking it everywhere. |
To clarify, this breaks the |
If the exports on the namespace objects are marked readonly, then yes. |
We should not allow mutating a property of a namespace import:
In ES6, these bindings are immutable.
The text was updated successfully, but these errors were encountered: