Actually throw when unwrapping fails.
authorMs2ger <ms2ger@gmail.com>
Sun, 12 Feb 2012 14:04:24 +0100
changeset 86756 8cf0a37a7936f39e3d2b507d5820fe5979e67f3f
parent 86755 6532286d5c6192898603ba1af901b81e507b7ee0
child 86757 7c2ba97d094951fd75d5f1e8d474a5dcfe6c311d
push id108
push userMs2ger@gmail.com
push dateSun, 12 Feb 2012 13:04:32 +0000
milestone13.0a1
Actually throw when unwrapping fails.
dom/bindings/Codegen.py
--- a/dom/bindings/Codegen.py
+++ b/dom/bindings/Codegen.py
@@ -527,17 +527,17 @@ class ConcreteObjectUnwrapper():
   }""").substitute(self.substitution)
 
 class FailureFatalConcreteObjectUnwrapper(ConcreteObjectUnwrapper):
     """
     As ConcreteObjectUnwrapper, but defaulting to throwing if unwrapping fails
     """
     def __init__(self, descriptor, source, target):
         ConcreteObjectUnwrapper.__init__(self, descriptor, source, target,
-                                         "xpc_qsThrow(cx, rv);")
+                                         "return xpc_qsThrow(cx, rv);")
 
 def getArgumentConversionTemplate(type, descriptor):
     if descriptor is not None:
         assert(type.isInterface())
         # This is an interface that we implement as a concrete class
         # or an XPCOM interface.
         if type.nullable():
             nameSuffix = ""