|
@@ -90,7 +90,11 @@ import lua.Boot;
|
|
|
}
|
|
|
|
|
|
public static function fields( o : Dynamic ) : Array<String> {
|
|
|
- return [for (f in lua.Boot.fieldIterator(o)) f];
|
|
|
+ if (lua.Lua.type(o) == "string"){
|
|
|
+ return Reflect.fields(untyped String.prototype);
|
|
|
+ } else {
|
|
|
+ return [for (f in lua.Boot.fieldIterator(o)) f];
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
public static function isFunction( f : Dynamic ) : Bool {
|