On 2015/04/07 18:29:35, caitp wrote:
you know what, I think the spec is actually pretty clear on this. " Such own
properties also must not be created for function objects defined using an
ArrowFunction, **MethodDefinition**, GeneratorDeclaration,
GeneratorExpression,
ClassDeclaration, or ClassExpression regardless of whether the definition is
contained in strict mode code. "

This is a break from ES5, but so is strict functions not having own "caller" / "arguments" properties, so it's a break either way. I guess the thing to do is just take out the extra condition. Still want the if statement instead of the
ternary?

Nice.

Most people never extract the functions from the accessors.

In ES6 we made the accessor functions non constructable (they have no prototype
property).

https://codereview.chromium.org/1027283004/

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to