Bug 1001157. Assert that there is no exception pending on the JSContext afer a DOM call if the call was not marked as throwing or if it did not throw on the ErrorResult. r=peterv

This commit is contained in:
Boris Zbarsky 2014-05-05 16:01:58 -04:00
parent 4c3acbbb4f
commit 2b052eec3c

View File

@ -5580,6 +5580,8 @@ class CGCallGenerator(CGThing):
self.cgRoot.append(CGIndenter(errorReport))
self.cgRoot.append(CGGeneric("}\n"))
self.cgRoot.append(CGGeneric("MOZ_ASSERT(!JS_IsExceptionPending(cx));\n"))
def define(self):
return self.cgRoot.define()