Skip to content

Commit

Permalink
work on evanw#184 disable instrumentation for Index expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
stoand committed Mar 6, 2023
1 parent 16bacd7 commit f862d41
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/js_printer/js_printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -1807,6 +1807,8 @@ func (p *printer) printExpr(expr js_ast.Expr, level js_ast.L, flags printExprFla
enableInstLocal = false
case *js_ast.EIdentifier:
enableInstLocal = false
case *js_ast.EIndex:
enableInstLocal = false
}

if enableInstLocal {
Expand Down

0 comments on commit f862d41

Please sign in to comment.