1 2 3 4 5 6
module builtin // used to generate JS throw statements. pub fn js_throw(s any) { #throw (s instanceof Error ? s : new Error(s)) }