aboutsummaryrefslogtreecommitdiff
path: root/test/bundler/transpiler.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/bundler/transpiler.test.js')
-rw-r--r--test/bundler/transpiler.test.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/bundler/transpiler.test.js b/test/bundler/transpiler.test.js
index 7af8f2d27..1fc599771 100644
--- a/test/bundler/transpiler.test.js
+++ b/test/bundler/transpiler.test.js
@@ -2969,4 +2969,12 @@ console.log(foo, array);
expectPrinted_('const x = "``" + ``;', 'const x = "``"');
});
});
+
+ it("scan on empty file does not segfault", () => {
+ new Bun.Transpiler().scan("");
+ });
+
+ it("scanImports on empty file does not segfault", () => {
+ new Bun.Transpiler().scanImports("");
+ });
});