superui_boa_engine 0.1.1

Fork of boa_engine (boa 0.21.1) vendored for superui so the boa_parser stack-growth patch is publishable; also carries a relaxed icu_normalizer pin. See docs/fork-patches.md. 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::*;
    }
}