archives

« Bugzilla Issues Index

#3491 — 15.2.1.*: missing rules for ContainsDuplicateLabels, ContainsUndefinedBreaksTarget, ContainsUndefinedContinueTarget


Each of
15.2.1.2 Static Semantics: ContainsDuplicateLabels
15.2.1.3 Static Semantics: ContainsUndefinedBreakTarget
15.2.1.4 Static Semantics: ContainsUndefinedContinueTarget
is missing a rule for the base-case of ModuleItemList,
i.e., either
ModuleItemList : [empty]
or
ModuleItemList : ModuleItem,
depending on how you resolve the first chunk of Bug 2536.


Ditto 15.2.1.23 "Runtime Semantics: Evaluation"


The three contains rule sets are only applied to ModuleItemList (see 15.2.1.1) and we don't need an explicit case for
ModuleItemList: ModuleItem
because of the chain rule.

similarly, evaluation chains through ModuleItem : ExportDeclaration and ModuleItem : StatementListItem


Ah, so the first chunk of Bug 2536 is being resolved toward
ModuleItemList : ModuleItem
?

(I was assuming
ModuleItemList : [empty]
and so the chain rule didn't kick in.)


(In reply to Michael Dyck from comment #3)
> Ah, so the first chunk of Bug 2536 is being resolved toward
> ModuleItemList : ModuleItem


yes


In Rev31