gecko-dev/js
Jim Blandy 5bfdb45b63 Bug 499524: Always check for duplicates when destructuring params are present. r=igor
Detect duplicate names in parameter lists that include destructuring
parameters, regardless of whether the duplication becomes before or
after the destructuring. Let strict mode complaints take care of
themselves after the body has been parsed.

In BindDestructuringArg, there should never be an entry in tc->decls
for the given name if the call to js_LookupLocal didn't detect a
duplicate argument, so we can simply assert that tc->decl.lookup
returns NULL, instead of checking it.

In HashLocalName, we can tighten the assertion: both the new and
existing entries must be JSLOCAL_ARG, since we detect all non-ARG
(i.e., destructuring) duplicates early.
2009-11-26 10:23:52 -08:00
..
ctypes revert an unintentional change from revision 0ccbfef948d5 2009-11-24 05:58:50 -06:00
jsd Bug 507448. Expose the names of the function arguments on jsdIScript. r=timeless,brendan 2009-10-26 09:30:40 -04:00
narcissus Fuss over comment in last changeset (518765). 2009-09-25 20:20:27 -07:00
src Bug 499524: Always check for duplicates when destructuring params are present. r=igor 2009-11-26 10:23:52 -08:00
landbranch.pl