Skip to content

Commit d44b7a6

Browse files
authored
fix: nil pointer deref for exported symbols (#19)
1 parent 9b3df7a commit d44b7a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/checker/checker.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15795,7 +15795,9 @@ func (c *Checker) getExportsOfModuleWorker(moduleSymbol *ast.Symbol) (exports as
1579515795
for _, node := range exportStars.Declarations {
1579615796
resolvedModule := c.resolveExternalModuleName(node, node.ModuleSpecifier(), false /*ignoreErrors*/)
1579715797
exportedSymbols := visit(resolvedModule, node, isTypeOnly || node.IsTypeOnly())
15798-
c.extendExportSymbols(nestedSymbols, exportedSymbols, lookupTable, node)
15798+
if exportedSymbols != nil {
15799+
c.extendExportSymbols(nestedSymbols, exportedSymbols, lookupTable, node)
15800+
}
1579915801
}
1580015802
for id, s := range lookupTable {
1580115803
// It's not an error if the file with multiple `export *`s with duplicate names exports a member with that name itself

0 commit comments

Comments
 (0)