Closed Bug 1235455 Opened 8 years ago Closed 7 years ago

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

Categories

(DevTools :: Console, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: giul.mus, Unassigned)

References

()

Details

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()".
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.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.