[[Call]] vs. [[Construct]] using symbols

Brendan Eich brendan at mozilla.org
Sat Oct 6 09:43:16 PDT 2012


Before we add more unstratified traps, I'd like Tom and Mark to comment. 
They've thought a lot about invariants to preserve even with proxies in 
the picture, and also for non-proxies. And they have a use-case to test 
against: SES.

Herby Vojčík wrote:
> But this has some quirks to solve, like typeof must be "function" for 
> every object having @call, but what about object having only @construct? 

If we do this, then let's hope testing (@construct in obj) isn't too 
bad. I suspect it won't be all that common.

/be


More information about the es-discuss mailing list