Explorar o código

Minor JS Vector optimization.

Bruno Garcia %!s(int64=12) %!d(string=hai) anos
pai
achega
c455b13945
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      std/haxe/Vector.hx

+ 2 - 0
std/haxe/Vector.hx

@@ -51,6 +51,8 @@ abstract Vector(VectorData<T>)<T> {
 			this = new flash.Vector<T>(length, true);
 		#elseif neko
 			this = untyped __dollar__amake(length);
+		#elseif js
+			this = untyped __new__(Array, length);
 		#else
 			this = [];
 			#if cpp