Skip to main content

Module missing_api_detector

Module missing_api_detector 

Source
Expand description

Missing Web Platform API detector

Investigation/diagnostic helper (“log mode”). Scripts probe a wide surface of Web Platform APIs that this engine has not implemented yet; when a page reaches an unimplemented API it fails with a generic TypeError. To make those gaps visible without breaking execution, this module emits a log::info! report of which global / document / Element.prototype APIs are absent at boot time.

It is deliberately side-effect free: it only reads, never installs stubs or shadows already-present implementations. Call install_missing_api_report right after creating a crate::engine::js::JsRuntime in an investigation harness (examples/yt.rs, the youtube fetch test) and grep for missing-api in the logs.

Functions§

install_missing_api_report
Runs the missing-API report on runtime and forwards each name to log::info!(target: "MissingApi", ...).