diff --git a/xpcom/idl-parser/xpidl.py b/xpcom/idl-parser/xpidl.py index 172837d5737f..9bb4c6c56b22 100644 --- a/xpcom/idl-parser/xpidl.py +++ b/xpcom/idl-parser/xpidl.py @@ -859,6 +859,8 @@ class Method(object): def needsJSTypes(self): if self.implicit_jscontext: return True + if self.type == "jsval": + return True for p in self.params: t = p.realtype if isinstance(t, Native) and t.specialtype == "jsval":