Fix for bug 850847 (Fix dictionary in generated example for workers). r=bz.
authorPeter Van der Beken <peterv@propagandism.org>
Mon, 17 Dec 2012 15:32:10 +0100
changeset 125488 f6889edd15381d0b5287e4fe3ad8541da9d13e7e
parent 125487 e9e5e2a8a52bdaecbb6052ca2ed583e39a8b8673
child 125489 cad5306d569ec581f1cf9bb15a73999f377a21be
push id24459
push useremorley@mozilla.com
push dateWed, 20 Mar 2013 11:46:36 +0000
treeherdermozilla-central@1d6fe70c79c5 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs850847
milestone22.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Fix for bug 850847 (Fix dictionary in generated example for workers). r=bz.
dom/bindings/Codegen.py
--- a/dom/bindings/Codegen.py
+++ b/dom/bindings/Codegen.py
@@ -7600,17 +7600,19 @@ class CGNativeMember(ClassMethod):
                 declType = "%s*"
             elif optional:
                 declType = "NonNull<%s>"
             else:
                 declType = "%s&"
             return (declType % "JSObject"), False, False
 
         if type.isDictionary():
-            return type.inner.identifier.name, True, True
+            typeName = CGDictionary.makeDictionaryName(type.inner,
+                                                       self.descriptor.workers)
+            return typeName, True, True
 
         assert type.isPrimitive()
 
         return builtinNames[type.tag()], False, True
 
     def getArgType(self, type, optional, variadic, isMember):
         """
         Get the type of an argument declaration.  Returns the type CGThing, and