Skip to content

Commit

Permalink
Hotfix previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
tdewolff committed Jan 20, 2021
1 parent b32d97c commit 87e4257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/ast.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (s *Scope) Declare(decl DeclType, name []byte) (*Var, bool) {
// Use increments the usage of a variable.
func (s *Scope) Use(name []byte) *Var {
// check if variable is declared in the current scope
v := s.findDeclared(name, true)
v := s.findDeclared(name, false)
if v == nil {
// check if variable is already used before in the current or lower scopes
v = s.findUndeclared(name)
Expand Down

0 comments on commit 87e4257

Please sign in to comment.