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

Function eval_py

crates/wasm/src/lib.rs:93–95  ·  view source on GitHub ↗
(source: &str, options: Option<Object>)

Source from the content-addressed store, hash-verified

91 /// `undefined` or "console", and it will be a dumb function when giving null.
92 #[wasm_bindgen(js_name = pyEval)]
93 pub fn eval_py(source: &str, options: Option<Object>) -> Result<JsValue, JsValue> {
94 run_py(source, options, Mode::Eval)
95 }
96
97 /// Evaluate Python code
98 ///

Callers

nothing calls this directly

Calls 1

run_pyFunction · 0.85

Tested by

no test coverage detected