Explorar el Código

fixed infinite loop in JS.

Nicolas Cannasse hace 19 años
padre
commit
f31310e5be
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      std/haxe/Unserializer.hx

+ 2 - 0
std/haxe/Unserializer.hx

@@ -43,6 +43,8 @@ class Unserializer {
  		var s = false;
  		while( true ) {
  			var c = buf.charCodeAt(pos) - 48;
+ 			if( Std.isNaN(c) )
+ 				break;
  			if( c == -3 ) {
  				s = true;
  				pos++;