<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Function.toString.call(class Foo {}) doesn't say "class""
href="https://bugs.webkit.org/show_bug.cgi?id=149743#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Function.toString.call(class Foo {}) doesn't say "class""
href="https://bugs.webkit.org/show_bug.cgi?id=149743">bug 149743</a>
from <span class="vcard"><a class="email" href="mailto:utatane.tea@gmail.com" title="Yusuke Suzuki <utatane.tea@gmail.com>"> <span class="fn">Yusuke Suzuki</span></a>
</span></b>
<pre>When implementing methods in class body, what happens?
function A() {
}
A.prototype.method = function () { };
class B {
method() { }
}
In the above case, A.toString() just returns the function code, but B.toString() returns the class body including the method definition.
I don't think there should be difference because class declaration behaves like a syntax sugar.
So I think waiting the things specified in the spec.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>