archives

« Bugzilla Issues Index

#3264 — 12.14.5.2, 12.14.5.3, 12.14.5.4: Assign inferred function names?


12.14.5.2 Runtime Semantics: DestructuringAssignmentEvaluation
AssignmentProperty : IdentifierReference Initializer opt

12.14.5.3 Runtime Semantics: IteratorDestructuringAssignmentEvaluation
AssignmentElement[Yield] : DestructuringAssignmentTarget Initializer opt

12.14.5.4 Runtime Semantics: KeyedDestructuringAssignmentEvaluation
AssignmentElement [Yield] : DestructuringAssignmentTarget Initializer opt


Destructuring assignment doesn't currently call SetFunctionName, that means for example `({fn = function(){}} = {})` will not assign the name "fn" to the default function expression.


fixed in rev30 editor's draft


fixed in rev30