convert null values

Brendan Eich brendan at
Thu Oct 11 09:58:45 PDT 2007

On Oct 11, 2007, at 7:21 AM, <Eugen.Konkov at>  
<Eugen.Konkov at> wrote:

> When convert null to string it is better to return empty string  
> then 'null' string;
> var a= null;
> var b= '';
> b= 'test' + a; //b == 'testnull'; EXPECTED: b == 'test'

This is an incompatible change and there's no point in making it now.

However much better this seems now, that ship sailed 12 years ago in  
Netscape 2 (beta). We do not get any bugs about this at, and I've never heard of it as a recurrent cause  
of real-world confusion and bugs, which might justify an incompatbile  
change, if there is no content on the crawlable web that depends on  
null => "null" and only content wishing null => "". So ES4 should  
remain compatible with ES1-3 here.


-------------- next part --------------
An HTML attachment was scrubbed...

More information about the Es4-discuss mailing list