That's actually wrong.

typeof 1
"number"
typeof new Number(1)
"object"
1 instanceof Number
false
new Number(1) instanceof Number
true

But it's true however that GWT does not make any distinction between a 
"Number value" and a "Number object", because in practice it doesn't matter 
much (it only matters if you use the typeof or instanceof operators, or when 
some browsers are buggy –such as Firefox throwing for foo[new String("bar")] 
whereas foo["bar"] is OK–)

-- 
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/-/nvaYXd2yLuYJ.
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