File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 22
22
package hscript ;
23
23
import haxe .PosInfos ;
24
24
import hscript .Expr ;
25
+ import haxe .Constraints .IMap ;
25
26
26
27
private enum Stop {
27
28
SBreak ;
@@ -484,8 +485,8 @@ class Interp {
484
485
case EBinop (" =>" , eKey , eValue ): {
485
486
var key : Dynamic = expr (eKey );
486
487
var value : Dynamic = expr (eValue );
487
- isAllString = isAllString && Std . is (key , String );
488
- isAllInt = isAllInt && Std . is (key , Int );
488
+ isAllString = isAllString && (key is String );
489
+ isAllInt = isAllInt && (key is Int );
489
490
isAllObject = isAllObject && Reflect .isObject (key );
490
491
isAllEnum = isAllEnum && Reflect .isEnumValue (key );
491
492
keys .push (key );
@@ -647,7 +648,7 @@ class Interp {
647
648
}
648
649
649
650
inline function isMap (o : Dynamic ): Bool {
650
- return Std . is ( o , haxe. Constraints . IMap );
651
+ return ( o is IMap );
651
652
}
652
653
653
654
inline function getMapValue (map : Dynamic , key : Dynamic ): Dynamic {
You can’t perform that action at this time.
0 commit comments