Browse Source

[js] initially grow BytesBuffer

Simon Krajewski 8 years ago
parent
commit
ab34ef9b13
1 changed files with 1 additions and 0 deletions
  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() {
 	public function new() {
 		pos = 0;
 		pos = 0;
 		size = 0;
 		size = 0;
+		grow(0);
 	}
 	}
 
 
 	inline function get_length() : Int {
 	inline function get_length() : Int {