Updates:
Status: WorkingAsIntended
Comment #4 on issue 1951 by [email protected]: Wrond displaying of js
code
http://code.google.com/p/v8/issues/detail?id=1951
var name does not declare a new variable in the global scope because window
object already has a field called name. This field is expected to be a
string so it's setter converts values you assign to it to string.
var name = null;
alert(typeof name); // -> string
This is why (!name) evaluates to true.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev