소스 검색

Minor JS Vector optimization.

Bruno Garcia 12 년 전
부모
커밋
c455b13945
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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