aboutsummaryrefslogtreecommitdiff
path: root/src/js_parser.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/js_parser.zig')
-rw-r--r--src/js_parser.zig10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/js_parser.zig b/src/js_parser.zig
index a0f4defae..dea2f044f 100644
--- a/src/js_parser.zig
+++ b/src/js_parser.zig
@@ -19451,13 +19451,9 @@ fn NewParser_(
return false;
}
- return
- // TODO: figure out why this is needed when bundling
- // The problem is all the top-level vars are getting removed when they're not actually side effect free
- !p.source.index.isRuntime() and
- // when there's actually no symbol by that name, we return Ref.None
- // If a symbol had already existed by that name, we return .unbound
- (result.ref.isNull() or p.symbols.items[result.ref.innerIndex()].kind == .unbound);
+ // when there's actually no symbol by that name, we return Ref.None
+ // If a symbol had already existed by that name, we return .unbound
+ return (result.ref.isNull() or p.symbols.items[result.ref.innerIndex()].kind == .unbound);
}
},
else => {},