Bug 1155968 - Fix variable use before initialization. r=khuey
authorBoris Kudryavtsev <boriskk.work@gmail.com>
Tue, 02 Jun 2015 12:17:00 +0200
changeset 251150 70839bf0a04edf081b554e16072272dca42c6a9d
parent 251149 8277d0a1f7b47e4dfd8c7bc6b7ca5a1ac02fd8b6
child 251151 76b1bf603f537d76c79f772e72ea21d3460c5315
push id13833
push userryanvm@gmail.com
push dateThu, 02 Jul 2015 20:00:55 +0000
treeherderfx-team@98101796b275 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskhuey
bugs1155968
milestone42.0a1
Bug 1155968 - Fix variable use before initialization. r=khuey
xpcom/idl-parser/xpidl.py
--- a/xpcom/idl-parser/xpidl.py
+++ b/xpcom/idl-parser/xpidl.py
@@ -568,17 +568,17 @@ class Interface(object):
         return "".join(l)
 
     def getConst(self, name, location):
         # The constant may be in a base class
         iface = self
         while name not in iface.namemap and iface is not None:
             iface = self.idl.getName(self.base, self.location)
         if iface is None:
-            raise IDLError("cannot find symbol '%s'" % name, c.location)
+            raise IDLError("cannot find symbol '%s'" % name)
         c = iface.namemap.get(name, location)
         if c.kind != 'const':
             raise IDLError("symbol '%s' is not a constant", c.location)
 
         return c.getValue()
 
     def needsJSTypes(self):
         for m in self.members: