diff options
-rw-r--r-- | src/js_ast.zig | 1 | ||||
-rw-r--r-- | src/js_parser.zig | 6 |
2 files changed, 1 insertions, 6 deletions
diff --git a/src/js_ast.zig b/src/js_ast.zig index 5c95b8f5e..8967d2c6d 100644 --- a/src/js_ast.zig +++ b/src/js_ast.zig @@ -5025,7 +5025,6 @@ pub const S = struct { pub const With = struct { value: ExprNodeIndex, body: StmtNodeIndex, - body_loc: logger.Loc, }; pub const Try = struct { diff --git a/src/js_parser.zig b/src/js_parser.zig index f596c2dcd..a8de35869 100644 --- a/src/js_parser.zig +++ b/src/js_parser.zig @@ -8992,14 +8992,10 @@ fn NewParser_( const test_ = try p.parseExpr(.lowest); try p.lexer.expect(.t_close_paren); - const body_loc = p.lexer.loc(); - _ = try p.pushScopeForParsePass(.block, body_loc); - defer p.popScope(); - var stmtOpts = ParseStatementOptions{}; const body = try p.parseStmt(&stmtOpts); - return p.s(S.With{ .body = body, .body_loc = body_loc, .value = test_ }, loc); + return p.s(S.With{ .body = body, .value = test_ }, loc); }, .t_switch => { try p.lexer.next(); |