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

fix context export not working if conflicts with instance variable #3991

Conversation

tanhauhau
Copy link
Member

@tanhauhau tanhauhau commented Nov 25, 2019

sorry, my bad for causing this regression bug.

Fix #3983

unknowingly, module_js and instance_js uses the same var_lookup. and instance_js var will overwrite module_js after traversing it's ast.

previously it works because, the module_js ast is traversed and extract exports. before traversing instance ast (which overwrites the module_js's vars)

@Conduitry Conduitry merged commit 0ab5337 into sveltejs:master Nov 26, 2019
@tanhauhau tanhauhau deleted the tanhauhau/context-export-conflict-with-instance-export branch November 26, 2019 14:20
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.

Module context export not working if instance variable with same name exists
2 participants