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

Method exec_single

crates/wasm/src/vm_class.rs:341–347  ·  view source on GitHub ↗
(
        &self,
        source: &str,
        source_path: Option<String>,
    )

Source from the content-addressed store, hash-verified

339
340 #[wasm_bindgen(js_name = execSingle)]
341 pub fn exec_single(
342 &self,
343 source: &str,
344 source_path: Option<String>,
345 ) -> Result<JsValue, JsValue> {
346 self.run(source, Mode::Single, source_path)
347 }
348}

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected