Skip to content

Commit 591ca7d

Browse files
committed
Fix __iter__
1 parent 954731d commit 591ca7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transcrypt/modules/org/transcrypt/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2781,7 +2781,7 @@ def pushPropertyAccessor(functionName):
27812781
self.emit (');}})')
27822782

27832783
if nodeName == '__iter__':
2784-
self.emit (';\ncls[Symbol.iterator] = () => cls.__iter__')
2784+
self.emit (';\ncls[Symbol.iterator] = () => cls.__iter__()')
27852785

27862786
if nodeName == '__next__':
27872787
self.emit (';\ncls.next = __jsUsePyNext__') # ??? Shouldn't this be a property, to allow bound

0 commit comments

Comments
 (0)