Mark pythonexc2js as noreturn (#1147)

This commit is contained in:
Hood Chatham 2021-01-16 16:47:59 -08:00 committed by GitHub
parent 293fefa7df
commit a961851e53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -16,7 +16,7 @@ _Py_IDENTIFIER(format_exception);
static JsRef
_python2js_unicode(PyObject* x);
void
void _Py_NO_RETURN
pythonexc2js()
{
bool success = false;
@ -35,7 +35,6 @@ pythonexc2js()
excval = hiwire_string_ascii("No exception type or value");
PySys_WriteStderr("No exception type or value\n");
goto finally__skip_print_tb;
return;
}
if (traceback == NULL) {