|
@@ -96,8 +96,8 @@ class Boot {
|
|
|
}
|
|
|
|
|
|
@:keep
|
|
|
- public static function defArray(tabobj: Dynamic) : Array<Dynamic> untyped {
|
|
|
- tabobj.length = tabobj[0] == null ? 0 : lua.TableTools.maxn(tabobj) + 1;
|
|
|
+ public static function defArray(tabobj: Dynamic, length : Int) : Array<Dynamic> untyped {
|
|
|
+ tabobj.length = length;
|
|
|
setmetatable(tabobj, {
|
|
|
__index : __lua__("Array.prototype"),
|
|
|
__newindex : lua.Boot.arrayNewIndex
|