Do JS engines (V8, JavaScriptCore, SpiderMonkey) diverge from the spec in this case? > Reflect.ownKeys(() => {}) [ 'length', 'name' ] Spec says .name should be inherited: https://tc39.es/ecma262/#sec-function-instances-name …
I think that text might just be wrong… Search for SetFunctionName, and see where it gets called. cc @ljharb @bakkoting @_shu
-
-
functions have an own “name” property unless they’re anonymous; however engines disagree on anon functions own-ness. See https://github.com/tc39/ecma262/pull/1490 … for the planned solution.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.