superui_boa_engine 0.3.2

Fork of boa_engine (boa 0.21.1) with relaxed icu_normalizer pin for Bevy 0.19 / Parley / icu 2.1 compatibility. Upstream: https://github.com/boa-dev/boa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// We could use `web-time` directly, but that would make it harder to add support
// for other platforms in the future e.g. `no_std` targets.
// We could also pull `web-time` and customize it for our target selection
cfg_if::cfg_if! {
    if #[cfg(all(
        target_family = "wasm",
        not(any(target_os = "emscripten", target_os = "wasi")),
        feature = "js"
    ))] {
        mod js;
        pub(crate) use self::js::*;
    } else {
        mod fallback;
        pub(crate) use self::fallback::*;
    }
}