Browse Source

[js] initially grow BytesBuffer

Simon Krajewski 8 năm trước cách đây
mục cha
commit
ab34ef9b13
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      std/js/_std/haxe/io/BytesBuffer.hx

+ 1 - 0
std/js/_std/haxe/io/BytesBuffer.hx

@@ -34,6 +34,7 @@ class BytesBuffer {
 	public function new() {
 		pos = 0;
 		size = 0;
+		grow(0);
 	}
 
 	inline function get_length() : Int {