pub fn eval(js_source_text: &str) -> Result<JsValue, JsValue>
The eval() function evaluates JavaScript code represented as a string.
eval()
MDN documentation