Browse Source

Lua: fix detection of arrays with Std.is

Justin Donaldson 9 years ago
parent
commit
f13e43036f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      std/lua/Boot.hx

+ 2 - 2
std/lua/Boot.hx

@@ -100,8 +100,8 @@ class Boot {
 				return untyped __type__(o) == "string";
 			case Array:
 				return untyped __type__(o) == "table"
-					&& o.mt != null
-					&& o.mt__index == untyped Array.prototype;
+					&& lua.Lua.getmetatable(o) != null
+					&& lua.Lua.getmetatable(o).__index == Array.prototype;
 			case Table:
 				return untyped __type__(o) == "table";
 			case Dynamic: