We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5003b48 commit 2d8aa23Copy full SHA for 2d8aa23
src/act_patch.rs
@@ -47,7 +47,7 @@ pub fn gen_param_type_check_patch(
47
r#"console.warn({}," and was casted"); {}({});"#,
48
log_message, param_js_constructor, param.name
49
),
50
- PatchType::Error => format!(r#"throw {};"#, log_message),
+ PatchType::Error => format!(r#"throw new TypeError({});"#, log_message),
51
PatchType::Warning => format!(r#"console.warn({});"#, log_message),
52
};
53
let typeinfo_operator = get_typeinfo_operator_from_acttype(¶m.act_type);
0 commit comments