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

Tab Atkins Jr. jackalmage at gmail.com
Thu Jan 10 13:31:36 PST 2013


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).

~TJ


More information about the es-discuss mailing list