Skip to content

Commit a1b7f74

Browse files
Fix null function reference for IntIterator
1 parent 891a085 commit a1b7f74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hscript/Interp.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ class Interp {
624624
#if ((flash && !flash9) || (php && !php7 && haxe_ver < '4.0.0'))
625625
if ( v.iterator != null ) v = v.iterator();
626626
#else
627-
try v = v.iterator() catch( e : Dynamic ) {};
627+
if ( v.iterator != null ) try v = v.iterator() catch( e : Dynamic ) {};
628628
#end
629629
if( v.hasNext == null || v.next == null ) error(EInvalidIterator(v));
630630
return v;

0 commit comments

Comments
 (0)