Mercurial > pymonkey
diff src/utils.cpp @ 123:08a012e96f62
Added another test and fixed a bug it revealed.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Wed, 19 Aug 2009 01:00:35 -0700 |
parents | 856ca7a139e4 |
children | 3613bc5dba3f |
line wrap: on
line diff
--- a/src/utils.cpp Wed Aug 19 00:47:46 2009 -0700 +++ b/src/utils.cpp Wed Aug 19 01:00:35 2009 -0700 @@ -233,6 +233,8 @@ jsval val; if (JS_GetPendingException(context->cx, &val)) { + JS_ClearPendingException(context->cx); + PyObject *pyStr = NULL; PyObject *tuple = NULL; PyObject *obj = PYM_jsvalToPyObject(context, val);