[Webkit-unassigned] [Bug 147742] [ES6] Implement ES6 arrow function syntax. Prototype of arrow function should be undefined

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 3 15:36:43 PDT 2015


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

--- Comment #11 from GSkachkov <gskachkov at gmail.com> ---
(In reply to comment #10)
> (In reply to comment #8)
> > 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?

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) http://people.mozilla.org/~jorendorff/es6-draft.html#sec-function-definitions-runtime-semantics-evaluation, 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.

-- 
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/20150903/7f358e77/attachment.html>


More information about the webkit-unassigned mailing list