[php] don't expect iterator to have iterator field (fixes #69) (#71)

* [php] don't expect IntIterator to have a field which does not exist (fixes #69)

* cleanup

* fix Interp.makeIterator for Haxe 3.4
This commit is contained in:
Alexander Kuzmenko
2017-10-03 09:46:14 +02:00
committed by Nicolas Cannasse
parent 8463e99d13
commit 852fee170e
+1 -1
View File
@@ -597,7 +597,7 @@ class Interp {
}
function makeIterator( v : Dynamic ) : Iterator<Dynamic> {
#if ((flash && !flash9) || php)
#if ((flash && !flash9) || (php && !php7 && haxe_ver < '4.0.0'))
if ( v.iterator != null ) v = v.iterator();
#else
try v = v.iterator() catch( e : Dynamic ) {};