google / traceur-compiler

Traceur is a JavaScript.next-to-JavaScript-of-today compiler
Apache License 2.0
8.17k stars 581 forks source link

Validate parameters for strict functions and non simple param lists #1913

Closed arv closed 9 years ago

arv commented 9 years ago

For strict mode functions we should not allow strict keywords or eval/arguments as binding name in the formal parameters.

For non simple parameter lists (default, rest and destructuring) as well as strict function we do not allow duplicate binding names.

arv commented 9 years ago

@johnjbarton PTAL

barkinet commented 9 years ago

@barkinet

johnjbarton commented 9 years ago

LGTM, another bug found ;-)