Ver código fonte

[js] initially grow BytesBuffer

Simon Krajewski 8 anos atrás
pai
commit
ab34ef9b13
1 arquivos alterados com 1 adições e 0 exclusões
  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 {