зеркало из https://github.com/mozilla/gecko-dev.git
Bug 620935 - __noSuchMethod__ support for WebIDL r=bz
This commit is contained in:
Родитель
4b8b74f442
Коммит
ea89037a83
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче