<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [ES6] Implement ES6 arrow function syntax. Prototype of arrow function should be undefined"
href="https://bugs.webkit.org/show_bug.cgi?id=147742#c11">Comment # 11</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [ES6] Implement ES6 arrow function syntax. Prototype of arrow function should be undefined"
href="https://bugs.webkit.org/show_bug.cgi?id=147742">bug 147742</a>
from <span class="vcard"><a class="email" href="mailto:gskachkov@gmail.com" title="GSkachkov <gskachkov@gmail.com>"> <span class="fn">GSkachkov</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=147742#c10">comment #10</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=147742#c8">comment #8</a>)
> > How I understand this rule:
> > If an arrow function doesn't have own prototype so it can be initialized by
> > custom js code. And if it possible to init this property so there has to be
> > way to delete it.
> > Does it make sense?
> > Possible I need add this to task description or ChangeLog
>
> Okay. I see. So for normal functions, we're definitely
> not allowed to delete "prototype", but for arrow functions,
> we start with no prototype, but we're allowed to define
> one and delete one?</span >
Yes, that is correct.
I've double checked the es6 spec, and did not find any mention that related to 'prototype' property in arrow function section(14.2), only in "usual" function section(14.1.20 Note 2) <a href="http://people.mozilla.org/~jorendorff/es6-draft.html#sec-function-definitions-runtime-semantics-evaluation">http://people.mozilla.org/~jorendorff/es6-draft.html#sec-function-definitions-runtime-semantics-evaluation</a>, so I expect that 'prototype' property of arrow function should behave as ordinary property, in contrast with 'prototype' property of "usual" function that automatically created, can be changed, but can't be deleted.</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>