archives

« Bugzilla Issues Index

#2920 — Initialize function expression name


14.1.22 Runtime Semantics: Evaluation

FunctionExpression : function ( FormalParameters ) { FunctionBody }

Do we need set name to "" or are names initialized to "" by default?


see 19.2.4.2: "Anonymous functions objects that do not have a contextual name associated with them by this specification do not have a name own property but inherit the name property of %FunctionPrototype%. "