[Webkit-unassigned] [Bug 162530] [JSC] ES6 Method functions should not have prototype
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Sep 24 16:18:58 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=162530
--- Comment #19 from Caitlin Potter (:caitp) <caitp at igalia.com> ---
Comment on attachment 289761
--> https://bugs.webkit.org/attachment.cgi?id=289761
Fix LayoutTests
View in context: https://bugs.webkit.org/attachment.cgi?id=289761&action=review
>> Source/JavaScriptCore/runtime/JSFunction.cpp:356
>> + bool isMethod = executable->isMethod() && !executable->isClass();
>
> Why the "!isClass" here?
> We distinguish between methods on object literals and methods on classes?
>
> What's the behavior for object literals? Please add tests for that.
'isClass' really means "class constructor", which is a special case (gets a prototype property during MakeConstructor (https://tc39.github.io/ecma262/#sec-makeconstructor) during step 16 of ClassDefinitionEvaluation (https://tc39.github.io/ecma262/#sec-runtime-semantics-classdefinitionevaluation).
I'll add some extra tests either tomorrow or during the week)
--
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/20160924/e4306d31/attachment.html>
More information about the webkit-unassigned
mailing list