Browse Source

bugfix haxe 4

ncannasse 7 năm trước cách đây
mục cha
commit
23428ca9ca
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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