[Webkit-unassigned] [Bug 149743] Function.toString.call(class Foo {}) doesn't say "class"

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Oct 5 19:59:22 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=149743

--- Comment #5 from Jordan Harband <ljharb at gmail.com> ---
> Why would you want to detect this?

There's any number of reasons. When I give them, the typical response is, "don't do that" - ie, determinine if a function will throw on [[Call]], or to help determine `IsConstructor` in an engine that doesn't support `new.target`. I've also written modules that detect if something's an arrow function, or a generator, etc - it's a use case that exists. Sadly, it's impossible without this fix.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151006/dd916334/attachment.html>


More information about the webkit-unassigned mailing list