pub fn read_script_file<P: AsRef<Path>>(path: P) -> Result<String, JSError>
Read a script file from disk and decode it into a UTF-8 Rust String. Supports UTF-8 (with optional BOM) and UTF-16 (LE/BE) with BOM.
String