Explorar o código

boot.js: _st() returns nil if argument is null

mkroehnert %!s(int64=12) %!d(string=hai) anos
pai
achega
e1bb932469
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      js/boot.js

+ 1 - 0
js/boot.js

@@ -792,6 +792,7 @@ var smalltalk = new Smalltalk();
 
 var _st = function(o) {
 	if(typeof o === 'undefined') {return nil}
+	if(null === o) {return nil}
 	if(o.klass) {return o}
 	return smalltalk.JSObjectProxy._on_(o);
 };