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

First in UMD global wins #10354

Merged
merged 1 commit into from
Aug 26, 2016
Merged

Conversation

RyanCavanaugh
Copy link
Member

Fixes #9771

// Merge in UMD exports with first-in-wins semantics (see #9771)
const source = file.symbol.globalExports;
for (const id in source) {
if (hasProperty(source, id) && !hasProperty(globals, id)) {
Copy link
Contributor

@yuit yuit Aug 17, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need to check hasProperty(source, id) since we switch to use new "Map"? same as !hasProperty(globals, id) could you just use indexer? though not sure we allow key mapped to undefined or not

@yuit
Copy link
Contributor

yuit commented Aug 17, 2016

Lgtm after smalle comments

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.

3 participants