diff options
author | 2021-09-23 22:01:34 -0700 | |
---|---|---|
committer | 2021-09-23 22:01:34 -0700 | |
commit | 4bb41b95a826892107b7ff3ff610d23d5afa96b6 (patch) | |
tree | 439f273d09ae8fa845eaec24c9e436c8fd244be3 /integration/snapshots/unicode-identifiers.js | |
parent | f78f4854a4e474a08023841f4714f0cd3774126b (diff) | |
download | bun-4bb41b95a826892107b7ff3ff610d23d5afa96b6.tar.gz bun-4bb41b95a826892107b7ff3ff610d23d5afa96b6.tar.zst bun-4bb41b95a826892107b7ff3ff610d23d5afa96b6.zip |
:camera:
Diffstat (limited to 'integration/snapshots/unicode-identifiers.js')
-rw-r--r-- | integration/snapshots/unicode-identifiers.js | 35 |
1 files changed, 6 insertions, 29 deletions
diff --git a/integration/snapshots/unicode-identifiers.js b/integration/snapshots/unicode-identifiers.js index 729365d1d..c495d69f6 100644 --- a/integration/snapshots/unicode-identifiers.js +++ b/integration/snapshots/unicode-identifiers.js @@ -1,30 +1,7 @@ -import { -__HMRModule as HMR -} from "http://localhost:8080/__runtime.js"; -import { -__HMRClient as Bun -} from "http://localhost:8080/__runtime.js"; -Bun.activate(true); +var ε = 1.0e-06, ε2 = ε * ε, π = Math.PI, τ = 2 * π, τε = τ - ε, halfπ = π / 2, d3_radians = π / 180, d3_degrees = 180 / π; -var hmr = new HMR(1398361736, "unicode-identifiers.js"), exports = hmr.exports; -(hmr._load = function() { - var ε = 1.0e-06, ε2 = ε * ε, π = Math.PI, τ = 2 * π, τε = τ - ε, halfπ = π / 2, d3_radians = π / 180, d3_degrees = 180 / π; - function test() { - console.assert(ε === 1.0e-06); - return testDone(import.meta.url); - } - hmr.exportAll({ - d3_radians: () => d3_radians, - test: () => test - }); -})(); -var $$hmr_d3_radians = hmr.exports.d3_radians, $$hmr_test = hmr.exports.test; -hmr._update = function(exports) { - $$hmr_d3_radians = exports.d3_radians; - $$hmr_test = exports.test; -}; - -export { - $$hmr_d3_radians as d3_radians, - $$hmr_test as test -}; +export {d3_radians}; +export function test() { + console.assert(ε === 1.0e-06); + return testDone(import.meta.url); +} |