It's actually not buggy.  JavaScript distinguishes between objects and 
values, and objects are containers for 
values<https://developer.mozilla.org/en/JavaScript/Guide/Values%2c_Variables%2c_and_Literals>.
 
 So when JSON { a = "b", c = 2 } is evaluated, it actually assigns values to 
the properties (at least in Mozilla), not objects. Values are more efficient 
that objects.

"bar".length is automatically 
converted<https://developer.mozilla.org/en/JavaScript/Guide/Values%2c_Variables%2c_and_Literals#String_Literals>to
 new String("bar").length, and the String object is discarded after the 
length property is used.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/0gAdZUy8mqMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to