atmos/os_lib/web_apis/
mod.rs1#![allow(dead_code)]
7
8pub mod builtins;
9pub mod dom_bridge;
10pub mod form_value;
11pub mod interp;
12pub mod xhr_route;
13pub mod xhr_sched;
14pub mod xhr_state;
15
16pub use crate::os_lib::ecma::{
17 eval, parse_script, parse_script_reporting, JsRuntime, Lexer, Parser, Value,
18};
19pub use dom_bridge::DomBridge;
20
21impl Default for JsRuntime {
22 fn default() -> Self {
23 Self::new()
24 }
25}
26
27impl JsRuntime {
28 pub fn new() -> Self {
30 Self::new_with_host(
31 &interp::host_dom::DOM_HOST_HOOKS,
32 interp::host_dom::new_runtime_host_state(),
33 builtins::install,
34 )
35 }
36}
37
38mod selftest;
39pub use selftest::selftest;