Browse Source

fixed direct resolveSymbol call

Nicolas Cannasse 6 years ago
parent
commit
6d16e1c47c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/hl/Profile.hx

+ 1 - 1
std/hl/Profile.hx

@@ -93,7 +93,7 @@ class Profile {
 	static var buf : hl.Bytes;
 	static var buf : hl.Bytes;
 	static function resolveSymbol( s : Symbol ) {
 	static function resolveSymbol( s : Symbol ) {
 		var size = BUFSIZE;
 		var size = BUFSIZE;
-		if( buf == null ) throw "assert";
+		if( buf == null ) buf = new hl.Bytes(BUFSIZE*2);
 		var bytes = resolve_symbol(s, buf, size);
 		var bytes = resolve_symbol(s, buf, size);
 		if( bytes == null ) return "<???>";
 		if( bytes == null ) return "<???>";
 		return @:privateAccess String.fromUCS2(bytes.sub(0,(size+1)*2));
 		return @:privateAccess String.fromUCS2(bytes.sub(0,(size+1)*2));