aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Dylan Conway <dylan.conway567@gmail.com> 2023-05-10 21:53:38 -0700
committerGravatar Dylan Conway <dylan.conway567@gmail.com> 2023-05-10 21:53:38 -0700
commit53fe8d61e735435689e581f81a8e891ca77b172f (patch)
tree23e79a390a8956e33fbe3c6267af6e097f3ef2f5
parente1c6adc73700aaa9012a1e40b022af3e3df8a9ad (diff)
downloadbun-53fe8d61e735435689e581f81a8e891ca77b172f.tar.gz
bun-53fe8d61e735435689e581f81a8e891ca77b172f.tar.zst
bun-53fe8d61e735435689e581f81a8e891ca77b172f.zip
object empty ast
Diffstat (limited to '')
-rw-r--r--src/bundler/bundle_v2.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bundler/bundle_v2.zig b/src/bundler/bundle_v2.zig
index 6f58f095b..883152c71 100644
--- a/src/bundler/bundle_v2.zig
+++ b/src/bundler/bundle_v2.zig
@@ -2357,7 +2357,7 @@ pub const ParseTask = struct {
threadlocal var override_file_path_buf: [bun.MAX_PATH_BYTES]u8 = undefined;
fn getEmptyAST(log: *Logger.Log, bundler: *Bundler, opts: js_parser.Parser.Options, allocator: std.mem.Allocator, source: Logger.Source) !JSAst {
- const root = Expr.init(E.Undefined, E.Undefined{}, Logger.Loc.Empty);
+ const root = Expr.init(E.Object, E.Object{}, Logger.Loc.Empty);
return JSAst.init((try js_parser.newLazyExportAST(allocator, bundler.options.define, opts, log, root, &source, "")).?);
}