Skip to content

Commit

Permalink
Add attribute msg to SyntaxError instances, required for issue #853
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreQuentel committed Dec 28, 2019
1 parent 250b33d commit fcd9f62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion www/src/py_exceptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,8 @@ $make_exc([["StopIteration","err.value = arguments[0]"],
["StopAsyncIteration","err.value = arguments[0]"],
"ArithmeticError", "AssertionError", "AttributeError",
"BufferError", "EOFError", "ImportError", "LookupError", "MemoryError",
"NameError", "OSError", "ReferenceError", "RuntimeError", "SyntaxError",
"NameError", "OSError", "ReferenceError", "RuntimeError",
["SyntaxError", "err.msg = arguments[0]"],
"SystemError", "TypeError", "ValueError", "Warning"],_b_.Exception)
$make_exc(["FloatingPointError", "OverflowError", "ZeroDivisionError"],
_b_.ArithmeticError)
Expand Down

0 comments on commit fcd9f62

Please sign in to comment.