Bug 1225396 part 4 - Remove @@iterator workaround in Codegen.py. r=bz

This commit is contained in:
Jan de Mooij 2015-12-09 22:56:17 -05:00
Родитель 718316dc71
Коммит 1762bca503
1 изменённых файлов: 0 добавлений и 16 удалений

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

@ -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: