You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've done some research on how to fix this, and it doesn't seem easy. Function#name is read-only, but it can be overridden with Object.defineProperty. However, even if we do that, it still doesn't show up in the devtools. There is also Function#displayName, which is proprietary, but that doesn't seem to work either. We could use eval(), but I'd really rather not. At this point, I’m out of ideas. Anyone else has any?
The text was updated successfully, but these errors were encountered:
LeaVerou
changed the title
All classes created with $.Class() show up in the devtools as ret or Object
All instances created with $.Class() show up in the devtools as ret or Object
Mar 4, 2016
ret
in Chrome,Object
in Firefox.Reduced testcase:
I've done some research on how to fix this, and it doesn't seem easy.
Function#name
is read-only, but it can be overridden withObject.defineProperty
. However, even if we do that, it still doesn't show up in the devtools. There is alsoFunction#displayName
, which is proprietary, but that doesn't seem to work either. We could useeval()
, but I'd really rather not. At this point, I’m out of ideas. Anyone else has any?The text was updated successfully, but these errors were encountered: