pub fn set_panic_on_js_errors(enabled: bool)
Enable panicking on JS errors (call this from test setup)