On 2013/12/03 18:27:27, rossberg wrote:
On 2013/12/03 18:11:19, sof wrote:
> On 2013/12/03 18:06:23, rossberg wrote:
> > On 2013/12/03 17:57:17, Michael Starzinger wrote:
> > > The only kind-of-spec for the "name" property on function objects
is the
> > > proposal on the Harmony wiki (please correct me if there is a more
precise
> > > specification that I am missing).
> > >
> > >
http://wiki.ecmascript.org/doku.php?id=harmony:function_name_property
> > >
> > > This proposal actually specs the property to be writable (even for
strict
> > > functions). So while I agree that having different attributes for
strict
and
> > > non-strict functions is weird, I am not sure this fix is going into
the
> right
> > > direction.
> > >
> > > Adding Andreas as a reviewer for his opinion on the matter.
> >
> > Actually, in ES6, .name will be non-writable but configurable (that is
already
> > spec'ed in the draft). Could you modify the CL to do that?
>
> The behaviour added here for this old compat property aligns with other
engines,
> sorry for not mentioning that.
>
> Do you want to make it non-writable for non-strict functions also?
Yeah, I'm a bit scared this might break the web. I don't think we want to
try
this without a flag.
OTOH, I also do not see much point in only changing it for strict mode
functions. So to be honest, I would rather hold off this change for the
time
being.
That was my concern also, but I confused [[Configurable]] with [[Writable]]
in
what you were suggesting for "name" when asking that question.
So, the change requested is to make [[Configurable]] for "name" be true for
both
strict and non-strict functions. The handling of [[Writable]] stays as it is
here.
fwiw, i think that's fine (without a flag)... agree?
https://codereview.chromium.org/99203006/
--
--
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/groups/opt_out.