pub fn run_script_main_thread_double<T>(script: T) -> c_doubleExpand description
Runs the given JavaScript script string with the eval() JS function, in the main thread,
using the emscripten-defined MAIN_THREAD_EM_ASM_DOUBLE.
It returns the return result of the script, interpreted as a C double.
§Arguments
script- The script to execute.
§Examples
assert_eq!(run_script_main_thread_double("1.1 + 2.1"), 3.2);