Bug 1257037 part 6. Simplify the toBindingNamespace function now that there are no worker bindings. r=khuey
authorBoris Zbarsky <bzbarsky@mit.edu>
Fri, 08 Jul 2016 00:37:54 -0400
changeset 385444 64424f160c3a9c5c8daa38bdc9414146c44f03c4
parent 385443 bd7880a9663687a997d7842b71815b5277c2965a
child 385445 2de33eb0bb321a55cd66168d2440281b5420d466
push id22506
push userbmo:lissyx+mozillians@lissyx.dyndns.org
push dateFri, 08 Jul 2016 10:46:25 +0000
reviewerskhuey
bugs1257037
milestone50.0a1
Bug 1257037 part 6. Simplify the toBindingNamespace function now that there are no worker bindings. r=khuey
dom/bindings/Codegen.py
--- a/dom/bindings/Codegen.py
+++ b/dom/bindings/Codegen.py
@@ -36,17 +36,17 @@ def memberReservedSlot(member, descripto
             member.slotIndices[descriptor.interface.identifier.name])
 
 
 def toStringBool(arg):
     return str(not not arg).lower()
 
 
 def toBindingNamespace(arg):
-    return re.sub("((_workers)?$)", "Binding\\1", arg)
+    return arg + "Binding"
 
 
 def isTypeCopyConstructible(type):
     # Nullable and sequence stuff doesn't affect copy-constructibility
     type = type.unroll()
     return (type.isPrimitive() or type.isString() or type.isEnum() or
             (type.isUnion() and
              CGUnionStruct.isUnionCopyConstructible(type)) or