Explorar o código

[js] initially grow BytesBuffer

Simon Krajewski %!s(int64=8) %!d(string=hai) anos
pai
achega
ab34ef9b13
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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 {