Ecma262: Why does FunctionDeclaration allow the name to be omitted?

Created on 1 Apr 2018  路  4Comments  路  Source: tc39/ecma262

See the second clause at
http://www.ecma-international.org/ecma-262/8.0/#prod-FunctionDeclaration

needs editorial changes question

Most helpful comment

Is it for export default function () {}?

All 4 comments

Is it for export default function () {}?

yes

Seems like an area where one of those controversial non-normative notes could come in handy...

see https://www.ecma-international.org/ecma-262/8.0/#sec-function-definitions-static-semantics-boundnames

Was this page helpful?
0 / 5 - 0 ratings