diff options
author | 2021-12-16 01:31:09 -0800 | |
---|---|---|
committer | 2021-12-16 01:31:09 -0800 | |
commit | ca807afba22272f482542aeb99b2f43195775cb5 (patch) | |
tree | 90f2a1a23d63e6303dfe9890bfc93158041af233 /integration/snapshots/number-literal-bug.hmr.debug.js | |
parent | e349e54cb8e4b2a36b7245e2bdbbe1f47453e196 (diff) | |
download | bun-ca807afba22272f482542aeb99b2f43195775cb5.tar.gz bun-ca807afba22272f482542aeb99b2f43195775cb5.tar.zst bun-ca807afba22272f482542aeb99b2f43195775cb5.zip |
:camera:
Diffstat (limited to 'integration/snapshots/number-literal-bug.hmr.debug.js')
-rw-r--r-- | integration/snapshots/number-literal-bug.hmr.debug.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/integration/snapshots/number-literal-bug.hmr.debug.js b/integration/snapshots/number-literal-bug.hmr.debug.js new file mode 100644 index 000000000..e9d9f7b06 --- /dev/null +++ b/integration/snapshots/number-literal-bug.hmr.debug.js @@ -0,0 +1,31 @@ +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(583570002, "number-literal-bug.js"), exports = hmr.exports; +(hmr._load = function() { + function test() { + const precision = 10; + try { + parseFloat(0 .toPrecision(precision) + "1"); + } catch (exception) { + throw new Error("Test Failed", exception); + } + 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 +}; |