Skip to content

Fix #14620: Lookup names in exports as well as locals when binding special properties#14823

Merged
mhegazy merged 3 commits into
masterfrom
fix14620
Apr 14, 2017
Merged

Fix #14620: Lookup names in exports as well as locals when binding special properties#14823
mhegazy merged 3 commits into
masterfrom
fix14620

Conversation

@mhegazy
Copy link
Copy Markdown
Contributor

@mhegazy mhegazy commented Mar 23, 2017

We only looked up names for special property targets in container.local, that got us the local symbol if they were exported. The change looks in the exports of the container first, if one exists.

@yuit
Copy link
Copy Markdown
Contributor

yuit commented Mar 23, 2017

question. why we still look things in "locals" should all export stuffs be in "exports" ? (I guess I don't understand this

special property targets in container.local, that got us the local symbol if they were exported

@mhegazy
Copy link
Copy Markdown
Contributor Author

mhegazy commented Mar 24, 2017

it might not be exported.. e.g.:

// global script
class C {}
C.static = 0

@mhegazy mhegazy merged commit 8324244 into master Apr 14, 2017
@mhegazy mhegazy deleted the fix14620 branch April 14, 2017 17:46
@microsoft microsoft locked and limited conversation to collaborators Jun 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants