mirror of https://github.com/pyodide/pyodide.git
Add more _Py_NO_RETURN markers (#1150)
This commit is contained in:
parent
b753272c2f
commit
92bdf28e42
|
@ -222,7 +222,7 @@ EM_JS_REF(JsRef, hiwire_float64array, (f64 * ptr, int len), {
|
|||
return Module.hiwire.new_value(array);
|
||||
})
|
||||
|
||||
EM_JS(void, hiwire_throw_error, (JsRef idmsg), {
|
||||
EM_JS(void _Py_NO_RETURN, hiwire_throw_error, (JsRef idmsg), {
|
||||
let jsmsg = Module.hiwire.get_value(idmsg);
|
||||
Module.hiwire.decref(idmsg);
|
||||
throw new Error(jsmsg);
|
||||
|
|
|
@ -312,7 +312,7 @@ hiwire_push_object_pair(JsRef idobj, JsRef idkey, JsRef idval);
|
|||
* The message is conventionally a Javascript string, but that is not required.
|
||||
* TODO: should be hiwire_set_error.
|
||||
*/
|
||||
void
|
||||
void _Py_NO_RETURN
|
||||
hiwire_throw_error(JsRef idmsg);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue