[[DefaultValue]] - When Is toString Not an Object?

2008-09-17 Thread Garrett Smith
The question I have is about the internal [[DefaultValue]] function. When [[DefaultValue]] is called with hint String, it first looks for a toString method. This seems strange because every native object would have a toString method in the prototype chain. To get the [[DefaultValue]](String) to

Re: use decimal

2008-09-17 Thread Brendan Eich
On Sep 17, 2008, at 10:13 PM, Mark S. Miller wrote: On Wed, Sep 17, 2008 at 6:50 PM, Maciej Stachowiak [EMAIL PROTECTED] wrote: I agree that typeof 1.5m == typeof 1.1m. However, I do not agree that 1.1m == 1.1. These should be !=, since they represent distinct real numbers. It seems

Re: use decimal

2008-09-17 Thread Brendan Eich
On Sep 17, 2008, at 7:48 PM, Sam Ruby wrote: Anybody care to mark up what they would like to see the following look like? http://intertwingly.net/stories/2008/09/12/estest.html Shipt it! (Not in ES3.1, certainly in Firefox 3.1 if we can... :-) /be

Re: use decimal

2008-09-17 Thread Maciej Stachowiak
On Sep 17, 2008, at 10:06 PM, Mark S. Miller wrote: 0/-0 != 0/0. Does it thus seem wrong that -0 === 0? Well, yes, actually it does seem wrong to me, but we all accept that particular wrongness. This is just more of the same. A lot more. Two wrongs don't make a right. One exception