NameError support

8 views
Skip to first unread message

g

unread,
Jul 15, 2012, 12:41:02 PM7/15/12
to pyj...@googlegroups.com
I added a function "$PY.exceptionify" to the builtins that immediately follows a catch statement to process the err variable.

Something like this is needed to throw NameErrors since JavaScript raises a native ReferenceError.  Other exception mapping can be added later on as needed.

See https://github.com/thenewguy/pyjaco/commit/84ab87c6be74f52ba3b98da49948a0d84f699100
Reply all
Reply to author
Forward
0 new messages