|
@@ -350,7 +350,7 @@ import cs.system.Type;
|
|
|
t = obj.GetType();
|
|
|
bf = System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.FlattenHierarchy;
|
|
|
} else {
|
|
|
- if (obj == typeof(string) && field.Equals("fromCharCode"))
|
|
|
+ if (t == typeof(string) && field.Equals("fromCharCode"))
|
|
|
return new haxe.lang.Closure(typeof(haxe.lang.StringExt), field, 0);
|
|
|
|
|
|
obj = null;
|