diff options
author | 2021-09-30 22:37:46 -0700 | |
---|---|---|
committer | 2021-09-30 22:37:46 -0700 | |
commit | d47419f4711c562e4b4b1642406cb29e326201c2 (patch) | |
tree | 78fdd39e536d13da5a4f35ff60138a1c2d0a8b33 /integration/snapshots/void-shouldnt-delete-call-expressions.hmr.debug.js | |
parent | 367f9c96740c4c4a9f717eb80b50e40bfc0e88af (diff) | |
download | bun-d47419f4711c562e4b4b1642406cb29e326201c2.tar.gz bun-d47419f4711c562e4b4b1642406cb29e326201c2.tar.zst bun-d47419f4711c562e4b4b1642406cb29e326201c2.zip |
Snapshots
Diffstat (limited to 'integration/snapshots/void-shouldnt-delete-call-expressions.hmr.debug.js')
-rw-r--r-- | integration/snapshots/void-shouldnt-delete-call-expressions.hmr.debug.js | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/integration/snapshots/void-shouldnt-delete-call-expressions.hmr.debug.js b/integration/snapshots/void-shouldnt-delete-call-expressions.hmr.debug.js new file mode 100644 index 000000000..ebc46c9ba --- /dev/null +++ b/integration/snapshots/void-shouldnt-delete-call-expressions.hmr.debug.js @@ -0,0 +1,32 @@ +import { +__HMRModule as HMR +} from "http://localhost:8080/__runtime.js"; +import { +__HMRClient as Bun +} from "http://localhost:8080/__runtime.js"; +Bun.activate(true); + +var hmr = new HMR(635901064, "void-shouldnt-delete-call-expressions.js"), exports = hmr.exports; +(hmr._load = function() { + var was_called = false; + function thisShouldBeCalled() { + was_called = true; + } + thisShouldBeCalled(); + function test() { + if (!was_called) + throw new Error("Expected thisShouldBeCalled to be called"); + return testDone(import.meta.url); + } + hmr.exportAll({ + test: () => test + }); +})(); +var $$hmr_test = hmr.exports.test; +hmr._update = function(exports) { + $$hmr_test = exports.test; +}; + +export { + $$hmr_test as test +}; |