Bug 620935 - __noSuchMethod__ support for WebIDL r=bz

This commit is contained in:
Andrea Marchesini 2014-01-23 09:25:04 +00:00
Родитель 4b8b74f442
Коммит ea89037a83
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -315,7 +315,7 @@ class IDLUnresolvedIdentifier(IDLObject):
assert len(name) > 0
if name[:2] == "__" and name != "__content" and not allowDoubleUnderscore:
if name[:2] == "__" and name != "__content" and name != "___noSuchMethod__" and not allowDoubleUnderscore:
raise WebIDLError("Identifiers beginning with __ are reserved",
[location])
if name[0] == '_' and not allowDoubleUnderscore:
@ -3155,7 +3155,7 @@ class IDLMethod(IDLInterfaceMember, IDLScope):
return self._hasOverloads
def isIdentifierLess(self):
return self.identifier.name[:2] == "__"
return self.identifier.name[:2] == "__" and self.identifier.name != "__noSuchMethod__"
def resolve(self, parentScope):
assert isinstance(parentScope, IDLScope)