Mercurial > pymonkey
comparison 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 |
comparison
equal
deleted
inserted
replaced
122:5eda03c8e756 | 123:08a012e96f62 |
---|---|
231 PyErr_Occurred()) | 231 PyErr_Occurred()) |
232 return; | 232 return; |
233 | 233 |
234 jsval val; | 234 jsval val; |
235 if (JS_GetPendingException(context->cx, &val)) { | 235 if (JS_GetPendingException(context->cx, &val)) { |
236 JS_ClearPendingException(context->cx); | |
237 | |
236 PyObject *pyStr = NULL; | 238 PyObject *pyStr = NULL; |
237 PyObject *tuple = NULL; | 239 PyObject *tuple = NULL; |
238 PyObject *obj = PYM_jsvalToPyObject(context, val); | 240 PyObject *obj = PYM_jsvalToPyObject(context, val); |
239 if (obj == NULL) { | 241 if (obj == NULL) { |
240 PyErr_Clear(); | 242 PyErr_Clear(); |