-
Notifications
You must be signed in to change notification settings - Fork 58
Using importHelpers instead of noEmitHelpers #368
Conversation
There was a problem hiding this 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 .
@bryanforbes I replaced the array-only usages of |
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 ]; |
There was a problem hiding this comment.
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
?
@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)) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is now!
Using
importHelpers
instead ofnoEmitHelpers
. Helpers will be provided bytslib
but augmented by@dojo/shim/main
.