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.
Created attachment 290227 [details] [PATCH] Proposed Fix Waiting on the other change to land.
Comment on attachment 290227 [details] [PATCH] Proposed Fix r=me
<https://trac.webkit.org/changeset/206610>