(source: &str, options: Option<Object>)
| 105 | /// `options`: The options are the same as eval mode |
| 106 | #[wasm_bindgen(js_name = pyExec)] |
| 107 | pub fn exec_py(source: &str, options: Option<Object>) -> Result<(), JsValue> { |
| 108 | run_py(source, options, Mode::Exec).map(drop) |
| 109 | } |
| 110 | |
| 111 | /// Evaluate Python code |
| 112 | /// |