зеркало из https://github.com/mozilla/gecko-dev.git
5bfdb45b63
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. |
||
---|---|---|
.. | ||
ctypes | ||
jsd | ||
narcissus | ||
src | ||
landbranch.pl |