archives

« Bugzilla Issues Index

#4087 — duplicate bindings allowed in CatchParameter


There are no early errors that prevent a CatchParameter from having duplicate bindings. Is this a mistake?


It seems that all other usages of BindingPattern disallow duplicates in the position it is used. Is there any reason these restrictions aren't consolidated to BindingPattern itself?


fixed in rev35 editor's draft.

added the early error for catch production.

It's simply a factoring choice. Everywhere else BindingPattern is used it is in a list where the entire list has to be checked for duplicates. In all those cases, a rule at the BindingPattern level would be redundant


fixed in rev35