[Webkit-unassigned] [Bug 162720] New: Arrow functions do not infer name from computed property but normal functions do
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Sep 29 02:57:38 PDT 2016
https://bugs.webkit.org/show_bug.cgi?id=162720
Bug ID: 162720
Summary: Arrow functions do not infer name from computed
property but normal functions do
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: joepeck at webkit.org
CC: sbarati at apple.com
Summary:
Arrow functions do not infer name from computed property but normal functions do
Test:
js> function funcName() { return "funcName" }
...
js> ({"func": function(){}}).func.name
"func"
js> ({["func"]: function(){}}).func.name
"func"
js> ({[funcName()]: function(){}}).func.name
"func"
js> ({func: ()=>{}}).func.name
"func"
js> ({["func"]: ()=>{}}).func.name
""
js> ({[funcName()]: ()=>{}}).func.name
""
Why is this? And is this actually specced anywhere? Maybe this is runtime, since evaluating funcName() must happen at runtime.
--
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/20160929/6536a085/attachment.html>
More information about the webkit-unassigned
mailing list