Skip to content

First in UMD global wins#10354

Merged
RyanCavanaugh merged 1 commit into
microsoft:masterfrom
RyanCavanaugh:fix9771
Aug 26, 2016
Merged

First in UMD global wins#10354
RyanCavanaugh merged 1 commit into
microsoft:masterfrom
RyanCavanaugh:fix9771

Conversation

@RyanCavanaugh
Copy link
Copy Markdown
Member

Fixes #9771

Comment thread src/compiler/checker.ts Outdated
// 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
Copy Markdown
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
Copy Markdown
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