New issue
Advanced search Search tips
Starred by 4 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
HW: ----
NextAction: ----
OS: ----
Priority: 3
Type: Bug

Blocking:
issue 3699



Sign in to add a comment

Function instances all have own 'name' property, contra ES2015

Project Member Reported by adamk@chromium.org, Jan 26 2016

Issue description

This is a sub-part of ES2015 function name reform. I'm splitting it off because it may not be web-compatible (several browsers ship 'name' properties on all functions). We will likely want to ship the new function name logic without having to remove 'name' properties on all instances at the same time.
 
Labels: Test262Failures
Labels: -test262failures Hotlist-test262

Comment 3 by adamk@chromium.org, May 23 2016

State of the world:

SpiderMonkey and JSC agree with V8 (all functions have a 'name' instance property). Edge omits it on anonymous functions.
Labels: DeliberateSpecViolation
Labels: SpecViolation-OpenQuestion

Comment 6 by adamk@chromium.org, Jun 29 2016

Any thoughts on how to resolve this open question? Since Function.prototype.name is the empty string, this should only be noticeable for cases that depend on an own property.

I'm inclined to think the only way to know if this breaks things is to try shipping it, but I'm open to any ideas about usecounting _something_ here.

Comment 7 by neis@chromium.org, Jul 1 2016

Cc: neis@chromium.org

Comment 8 by adamk@chromium.org, Oct 10 2016

Cc: adamk@chromium.org
Owner: ----
Status: Available (was: Assigned)
Labels: Priority-2

Comment 10 by adamk@chromium.org, Apr 14 2017

Labels: -Priority-2 Priority-3
State of the world still the same as in #c3

Comment 11 by adamk@chromium.org, Dec 19 2017

Filed a spec issue: https://github.com/tc39/ecma262/issues/1049
 Issue 7245  has been merged into this issue.
Cc: timothygu@chromium.org

Sign in to add a comment