[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 15:34:40 PDT 2015


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

--- Comment #3 from Jordan Harband <ljharb at gmail.com> ---
In that example - when the method is dynamically added - the "method" function absolutely wouldn't appear. If you define a function's name later, it doesn't affect its string representation.

While it's fine to wait, this means it's *impossible* to detect when a "class" was defined using "class" syntax, and also does not comply with how Chrome or Edge does it (although it does comply with how Firefox does it).

Waiting for the spec to define it isn't the worst idea, but Chrome and Edge's behavior will almost certainly become the standard - so it'd be nice if WebKit/Safari followed suit.

-- 
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/20151005/e88ae87a/attachment.html>


More information about the webkit-unassigned mailing list