Skip to content

Commit

Permalink
Ensure that when import/export are used natively in the JS runtime th…
Browse files Browse the repository at this point in the history
…at the check for alias symbol is re-applied - re comment in #26912
  • Loading branch information
orta committed Jul 30, 2019
1 parent 946a14f commit 4145fef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30004,7 +30004,7 @@ namespace ts {
function checkImportBinding(node: ImportEqualsDeclaration | ImportClause | NamespaceImport | ImportSpecifier) {
checkCollisionWithRequireExportsInGeneratedCode(node, node.name!);
checkCollisionWithGlobalPromiseInGeneratedCode(node, node.name!);
if (!isInJSFile(node)) {
if (!isInJSFile(node) || languageVersion < ScriptTarget.ES2020) {
checkAliasSymbol(node);
}
}
Expand Down

0 comments on commit 4145fef

Please sign in to comment.