archives

« Bugzilla Issues Index

#3573 — 12.14.5.2 Runtime Semantics: DestructuringAssignmentEvaluation


It feels like the following case can be handled via KeyedDestructuringAssignmentEvaluation (like the case after it).

AssignmentProperty : IdentifierReference Initializer_opt


That doesn't quite work because of how the grammar productions are factored. Basically, the Initializer is at different levels in the two parse tress.

The body of the KeyedDestructuringAssignmentEvaluation rule could probably be factored out into an abstract operation that was used for both cases. But it seems late in the process to be making that big of a refactoring unless it is also needed to fix an actual semantic bug.


Yes. Not worth the risk.