boa_engine 0.21.1

Boa is a Javascript lexer, parser and compiler written in Rust. Currently, it has support for some of the language.
Documentation
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::*;
    }
}