diff options
Diffstat (limited to 'intl/icu_capi/js/examples/tinywasm/delete_fetch.mjs')
-rw-r--r-- | intl/icu_capi/js/examples/tinywasm/delete_fetch.mjs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/intl/icu_capi/js/examples/tinywasm/delete_fetch.mjs b/intl/icu_capi/js/examples/tinywasm/delete_fetch.mjs new file mode 100644 index 0000000000..7aebb7d79c --- /dev/null +++ b/intl/icu_capi/js/examples/tinywasm/delete_fetch.mjs @@ -0,0 +1,8 @@ +// This file is part of ICU4X. For terms of use, please see the file +// called LICENSE at the top level of the ICU4X source tree +// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). + +// diplomat-wasm.mjs uses fetch when available, but fetch in Node.js is broken, +// so delete the function to force the wasm to be loaded via the fs module. +// See <https://github.com/rust-diplomat/diplomat/issues/283>. +delete globalThis.fetch; |