Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Using importHelpers instead of noEmitHelpers #368

Merged
merged 7 commits into from
Nov 14, 2017

Conversation

rorticus
Copy link
Contributor

Using importHelpers instead of noEmitHelpers. Helpers will be provided by tslib but augmented by @dojo/shim/main.

Copy link
Member

@bryanforbes bryanforbes left a comment

Choose a reason for hiding this comment

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

Can you go through and make sure that where we're using for...of that it's not on arrays? Or, if it's on an array, we treat them differently because of microsoft/TypeScript#19933 .

@rorticus
Copy link
Contributor Author

@bryanforbes I replaced the array-only usages of for..of with forEach

src/lang.ts Outdated
if (source === null || source === undefined) {
continue;
}
for (let key in source) {
if (inherited || hasOwnProperty.call(source, key)) {
let value: any = source[key];
let value: any = source[ key ];
Copy link
Member

Choose a reason for hiding this comment

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

Why are you adding spaces around key?

@rorticus
Copy link
Contributor Author

@bryanforbes Webstorm was overzealous. I've put back (most) of the style changes. I left ones alone that were fixing previous style errors because of reasons.

}

return processedModules;
} else if (isIterable(modules)) {
Copy link
Member

Choose a reason for hiding this comment

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

Should the else if be on a new line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is now!

@rorticus rorticus merged commit 2b76265 into dojo:master Nov 14, 2017
@dylans dylans added this to the beta.4 milestone Dec 22, 2017
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