We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5d6bde commit 8e203e7Copy full SHA for 8e203e7
internal/checker/emitresolver.go
@@ -609,6 +609,9 @@ func (r *emitResolver) IsExpandoFunctionDeclaration(node *ast.Node) bool {
609
return false
610
}
611
612
+ r.checkerMu.Lock()
613
+ defer r.checkerMu.Unlock()
614
+
615
var symbol *ast.Symbol
616
if ast.IsVariableDeclaration(node) {
617
if node.Type() != nil || (!ast.IsInJSFile(node) && !ast.IsVarConstLike(node)) {
@@ -887,6 +890,9 @@ func (r *emitResolver) GetPropertiesOfContainerFunction(node *ast.Node) []*ast.S
887
890
888
891
889
892
if ast.IsFunctionDeclaration(node) {
893
894
895
896
symbol := r.checker.getSymbolOfDeclaration(node)
897
if symbol == nil {
898
return props
0 commit comments