MCPcopy Index your code
hub / github.com/RustPython/RustPython / window

Function window

crates/wasm/src/wasm_builtins.rs:10–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8use web_sys::{self, console};
9
10pub(crate) fn window() -> web_sys::Window {
11 web_sys::window().expect("Window to be available")
12}
13
14pub fn sys_stdout_write_console(data: &str, _vm: &VirtualMachine) -> PyResult<()> {
15 console::log_1(&data.into());

Callers 6

panic_hookFunction · 0.85
fetchFunction · 0.85
request_animation_frameFunction · 0.85
cancel_animation_frameFunction · 0.85
documentFunction · 0.85
load_moduleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected