Sign in

    mizchi/crater-browser-native/js_v8 does not have a README file

    V8JsRuntime

    pub struct V8JsRuntime {
    initialized : Bool
    dom_initialized : Bool
    dom_synced : Bool
    runtime :
    Runtime
    ?
    mock_dom_source : String?
    id_map : Map[Int,
    NodeId
    ]
    }

    V8JsRuntime::as_js_runtime

    Get V8JsRuntime as a JsRuntime trait object for use with JsContext.

    V8JsRuntime::new

    Create a V8JsRuntime without mock DOM (basic eval only).

    V8JsRuntime::new_with_mock_dom

    fn V8JsRuntime::new_with_mock_dom(mock_dom_js : String) -> V8JsRuntime

    Create a V8JsRuntime with mock DOM source code. The mock DOM JS will be evaluated on first execute() call.

    full_mock_dom_js

    fn full_mock_dom_js() -> String

    Full mock DOM JS (auto-generated from mock_dom.js)

    minimal_mock_dom_js

    fn minimal_mock_dom_js() -> String

    Minimal mock DOM for testing. A subset of the full mock_dom.js, enough for basic DOM tests.

    Powered by MoonBit

    Site sourceReport issuePackagesBuild queueSkillsStatistics

    © 2026 mooncakes.io