Skip to content

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