Ver Fonte

bugfix haxe 4

ncannasse há 7 anos atrás
pai
commit
23428ca9ca
1 ficheiros alterados com 1 adições e 1 exclusões
  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 = #if (haxe_ver >= 4) js.Syntax.new_ #else untyped __new__ #end(Array, length);
+		this = #if (haxe_ver >= 4) js.Syntax.construct #else untyped __new__ #end(Array, length);
 		#elseif flash
 		this = new InnerData(length);
 		#else