* Andy Earnshaw wrote:
>typeof null == "null" is a different case though.  typeof is a requirement
>for checking the existence of pre-declared variables, so you could expect
>something like, if (typeof someVar === "object" && someVar === null), to
>appear at least in a few places on the web.  Tab's saying that this
>proposal wouldn't break much (if anything) because code isn't written like
>this anywhere: it wouldn't be readable or reliable.  Writing a < b < c in
>ES<=5 would be either stupidity or ignorance (in the case of the latter
>then this proposal would probably fix more code than it breaks).

If that code is interpreted reliably and the behavior is desired, there
is no reason to assume that e.g. code obfuscators would not produce it.
-- 
Björn Höhrmann · mailto:[email protected] · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to