aboutsummaryrefslogtreecommitdiff
path: root/test/snapshots/caught-require.js
diff options
context:
space:
mode:
authorGravatar Alexander <alexkuz@gmail.com> 2022-07-09 15:45:38 +0400
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-07-09 05:09:16 -0700
commit7d1c9fa1a471d180c078a860c4885478f334bdf5 (patch)
tree1c7fa59320147142c828dc7ca1d38bbda3722839 /test/snapshots/caught-require.js
parentdd5996379d3783e1982f156056dc550e365920d8 (diff)
downloadbun-7d1c9fa1a471d180c078a860c4885478f334bdf5.tar.gz
bun-7d1c9fa1a471d180c078a860c4885478f334bdf5.tar.zst
bun-7d1c9fa1a471d180c078a860c4885478f334bdf5.zip
Migrate to Zig v0.10.0
Diffstat (limited to 'test/snapshots/caught-require.js')
-rw-r--r--test/snapshots/caught-require.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/snapshots/caught-require.js b/test/snapshots/caught-require.js
index 73608f8e3..7c356a21d 100644
--- a/test/snapshots/caught-require.js
+++ b/test/snapshots/caught-require.js
@@ -1,12 +1,12 @@
import {
__require as require
} from "http://localhost:8080/bun:wrap";
+var this_package_should_not_exist_f335_0 = (() => ({}));
+var this_package_should_not_exist_f335_1 = (() => ({}));
try {
- require((() => { throw (new Error(`Cannot require module '"this-package-should-not-exist"'`)); } )());
-
+ require((() => { throw (new Error(`Cannot require module "this-package-should-not-exist"`)); } )());
} catch (exception) {
}
-
try {
await import("this-package-should-not-exist");
} catch (exception) {
@@ -16,7 +16,7 @@ import("this-package-should-not-exist").then(() => {
});
export async function test() {
try {
- require((() => { throw (new Error(`Cannot require module '"this-package-should-not-exist"'`)); } )());
+ require((() => { throw (new Error(`Cannot require module "this-package-should-not-exist"`)); } )());
} catch (exception) {
}
try {