Selaa lähdekoodia

daily haxe 4 fix

ncannasse 8 vuotta sitten
vanhempi
commit
00e58bfced
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      hxd/IndexBuffer.hx

+ 1 - 1
hxd/IndexBuffer.hx

@@ -25,7 +25,7 @@ abstract IndexBuffer(InnerData) {
 
 	public inline function new(length = 0) {
 		#if js
-		this = untyped __new__(Array, length);
+		this = #if (haxe_ver >= 4) js.Syntax.new_ #else untyped __new__ #end(Array, length);
 		#elseif flash
 		this = new InnerData(length);
 		#else