Bug 901116. Give a better error message if the same name is typedeffed twice in WebIDL. r=khuey

We could also switch typedefs to using IDLWrapperType, but this seems like a smaller and still-sane change.
This commit is contained in:
Boris Zbarsky 2013-08-29 00:30:05 -04:00
parent e077229d95
commit 2ad03e9425

View File

@ -243,7 +243,7 @@ class IDLScope(IDLObject):
return
# ensureUnique twice with the same object is not allowed
assert object != self._dict[identifier.name]
assert id(object) != id(self._dict[identifier.name])
replacement = self.resolveIdentifierConflict(self, identifier,
self._dict[identifier.name],