archives

« Bugzilla Issues Index

#2197 — 14.1.14: function name passed to FunctionCreate instead of calling SetFunctionName


14.1.14 Runtime Semantics: InstantiateFunctionObject, step 3.
14.1.15 Runtime Semantics: Evaluation, FunctionExpression : function BindingIdentifier, step ?.
14.3.8 Runtime Semantics: DefineMethod, step 6a.
14.3.9 Runtime Semantics: PropertyDefinitionEvaluation, MethodDefinition : get PropertyName ( ), step 7a.
14.3.9 Runtime Semantics: PropertyDefinitionEvaluation, MethodDefinition : set PropertyName ( PropertySetParameterList ), step 6a.

These algorithms pass the function's name to FunctionCreate, but FunctionCreate does not actually use the "methodName" parameter in this context. Instead of passing the name to FunctionCreate, call SetFunctionName?


fixed in rev21 editor's draft


fixed in rev21 draft