unknownPrivateSymbol trap (was: WeakMap better than Private Symbols? (was: direct_proxies "problem"))

David Bruant bruant.d at gmail.com
Thu Jan 10 13:38:19 PST 2013

Le 10/01/2013 22:31, Tab Atkins Jr. a écrit :
> On Thu, Jan 10, 2013 at 1:24 PM, David Bruant <bruant.d at gmail.com> wrote:
>> I think the return true/false protocol should be replaced by a return/throw
>> protocol (return value is ignored). It'd be much more explicit this way.
> FWIW, I kinda like the aesthetics of return/throw a bit better too,
> through it's kinda weird that the thrown error is *also* ignored (and
> instead a TypeError is thrown).
I didn't mention it, but I was thinking of keeping the error as it's 
thrown in the trap, only ignoring the return value in the 'return' 
case... I realize that I should have mention it now that I read about 
the TypeError in the strawman.


More information about the es-discuss mailing list