зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1225396 part 4 - Remove @@iterator workaround in Codegen.py. r=bz
This commit is contained in:
Родитель
718316dc71
Коммит
1762bca503
|
@ -2269,22 +2269,6 @@ class MethodDefiner(PropertyDefiner):
|
|||
"condition": MemberCondition()
|
||||
})
|
||||
|
||||
# Output an @@iterator for generated iterator interfaces. This should
|
||||
# not be necessary, but
|
||||
# https://bugzilla.mozilla.org/show_bug.cgi?id=1091945 means that
|
||||
# %IteratorPrototype%[@@iterator] is a broken puppy.
|
||||
if (not static and
|
||||
not unforgeable and
|
||||
descriptor.interface.isIteratorInterface()):
|
||||
self.regular.append({
|
||||
"name": "@@iterator",
|
||||
"methodInfo": False,
|
||||
"selfHostedName": "IteratorIdentity",
|
||||
"length": 0,
|
||||
"flags": "0",
|
||||
"condition": MemberCondition()
|
||||
})
|
||||
|
||||
# Generate the maplike/setlike iterator, if one wasn't already
|
||||
# generated by a method. If we already have an @@iterator symbol, fail.
|
||||
if descriptor.interface.maplikeOrSetlikeOrIterable:
|
||||
|
|
Загрузка…
Ссылка в новой задаче