aboutsummaryrefslogtreecommitdiff
path: root/test/snapshots/caught-require.hmr.debug.js
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-09-23 09:03:51 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-09-25 13:14:23 -0700
commitffde9f7842e6e7dbc9c4120570f0c534b173852e (patch)
treeded965e4193c89e0068dedb4ddfe19e27becb319 /test/snapshots/caught-require.hmr.debug.js
parent281950978653cc8eda4f72eee0fe4938039f860f (diff)
downloadbun-ffde9f7842e6e7dbc9c4120570f0c534b173852e.tar.gz
bun-ffde9f7842e6e7dbc9c4120570f0c534b173852e.tar.zst
bun-ffde9f7842e6e7dbc9c4120570f0c534b173852e.zip
:camera:
Diffstat (limited to 'test/snapshots/caught-require.hmr.debug.js')
-rw-r--r--test/snapshots/caught-require.hmr.debug.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/snapshots/caught-require.hmr.debug.js b/test/snapshots/caught-require.hmr.debug.js
index 5beecb99b..f2a75dbe1 100644
--- a/test/snapshots/caught-require.hmr.debug.js
+++ b/test/snapshots/caught-require.hmr.debug.js
@@ -2,7 +2,6 @@ import {
__HMRClient as Bun
} from "http://localhost:8080/bun:wrap";
Bun.activate(true);
-
import {
__require as require
} from "http://localhost:8080/bun:wrap";
@@ -12,11 +11,12 @@ __FastRefreshModule as FastHMR
import {
__FastRefreshRuntime as FastRefresh
} from "http://localhost:8080/bun:wrap";
-var hmr = new FastHMR(2398506918, "caught-require.js", FastRefresh), exports = hmr.exports;
-
+var this_package_should_not_exist_f335_0 = (() => ({}));
+var this_package_should_not_exist_f335_1 = (() => ({}));
+var hmr = new FastHMR(3165260286, "caught-require.js", FastRefresh), exports = hmr.exports;
await (hmr._load = async function() {
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 {
@@ -28,7 +28,7 @@ await (hmr._load = async function() {
});
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 {