Calling a higher order function returns "function a/<()"

RESOLVED INVALID

Status

DevTools
Console
RESOLVED INVALID
3 years ago
a month ago

People

(Reporter: giul.mus, Unassigned)

Tracking

Trunk

Firefox Tracking Flags

(Not tracked)

Details

(URL)

(Reporter)

Description

3 years ago
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0
Build ID: 20151208100201

Steps to reproduce:

I ran the following code in the Javascript console:

var a = b => c => c; /* (or equivalently a = function(b) { return function(c) { return c; }} */
a(1);


Actual results:

The console returned "function a/<()", which is a syntax that I'm completely unaware of.


Expected results:

I expected the result to be something like "function()" or "function a()".

Updated

3 years ago
Component: JavaScript Engine → Developer Tools: Console
Product: Core → Firefox
Version: 43 Branch → Trunk
fwiw, the naming rule itself is described in bug 433529 comment #7 and bug 433529 comment #9.
(Reporter)

Updated

a year ago
Status: UNCONFIRMED → RESOLVED
Last Resolved: a year ago
Resolution: --- → INVALID

Updated

a month ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.