Function names in Web console

Discuss building things with or for the Mozilla Platform.
Posts: 7
Joined: August 29th, 2007, 5:38 pm

Post Posted October 31st, 2014, 9:21 am

When inspecting a function reference, Firefox shows its original function name that seems otherwise inaccessible to the user.
Let's open the console and type:
Code: Select all

This prints a function reference visualised as "function myFunc()" that is, indeed, its function name.
However, not "name", "displayName" nor "toSource()" of this function reference would contain the above string. Is it possible to access it from user code?

Return to Mozilla Development

Who is online

Users browsing this forum: No registered users and 1 guest