Add more _Py_NO_RETURN markers (#1150)

This commit is contained in:
Hood Chatham 2021-01-18 09:07:21 -08:00 committed by GitHub
parent b753272c2f
commit 92bdf28e42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);
/**