# HG changeset patch # User Atul Varma # Date 1250691980 25200 # Node ID 3613bc5dba3fc1fdb2c9a9c79edb22b0d6090ec8 # Parent 08a012e96f62b3c66796ef3d0367be6f31e531e9 Fixed a TODO. diff -r 08a012e96f62 -r 3613bc5dba3f src/utils.cpp --- a/src/utils.cpp Wed Aug 19 01:00:35 2009 -0700 +++ b/src/utils.cpp Wed Aug 19 07:26:20 2009 -0700 @@ -252,9 +252,10 @@ if (str != NULL) pyStr = PYM_jsvalToPyObject(context, STRING_TO_JSVAL(str)); - else - // TODO: Is there an exception in JS-land we should clear? + else { + JS_ClearPendingException(context->cx); pyStr = PyString_FromString(""); + } if (pyStr) { tuple = Py_BuildValue("(OO)", obj, pyStr);