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
Родитель 9ca8e983b5
Коммит 2cb7f1d590
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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],