Object.prototype.inspect ?

Tobie Langel tobie.langel at gmail.com
Thu Mar 12 21:17:10 PDT 2009


On Mar 13, 2009, at 03:28 , Brendan Eich wrote:
>
> What you want is for Object.prototype.toString.call(obj) to return  
> F.name.

Right.

> That could be specified by changing Object.prototype.toString,  
> instead of 13.2.2.

Right. Though it might be a good thing to keep accessing [[Class]] and  
F.name separately given the information you provided earlier.

> I don't have time to try it out and see how it works, but I thought  
> I'd suggest it. The constructor property is writable and deletable,  
> which indeed creates a hazard. But it may be tolerable.

If it's for debugging purposes only, definitely.



More information about the Es-discuss mailing list