[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
Tue Aug 25 14:13:13 PDT 2015


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

Filip Pizlo <fpizlo at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #259456|review?                     |review-
              Flags|                            |

--- Comment #4 from Filip Pizlo <fpizlo at apple.com> ---
Comment on attachment 259456
  --> https://bugs.webkit.org/attachment.cgi?id=259456
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=259456&action=review

> Source/JavaScriptCore/runtime/JSArrowFunction.cpp:70
> +    removeDirect(vm, vm.propertyNames->prototype);

This is not necessary, and it's also quite wrong.  It's quite bad to remove properties; it puts the object into a conservative (i.e. slow) mode.  Also, there is no way for the object to have a "prototype" property at this point, since it's added lazily.

-- 
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/20150825/d656e41d/attachment.html>


More information about the webkit-unassigned mailing list