goatslacker / get-parameter-names

Retrieves the argument names of a function
46 stars 13 forks source link

Adding support for some ES2015 features #4

Closed allain closed 8 years ago

allain commented 8 years ago

It now supports arrow functions and default parameters.

For example:

a => a * 2
(a, b=20) => a + b
function (a, b=20) { return a + b; }

I've added unit tests for these. I made the tests pass in stringified versions of the functions instead of the functions directly so that Node.js >= 0.4.0 could run the tests without breaking.

goatslacker commented 8 years ago

Awesome, thank you!

allain commented 8 years ago

You're welcome.

On Mon, Mar 21, 2016 at 8:53 PM Josh Perez notifications@github.com wrote:

Awesome, thank you!

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/goatslacker/get-parameter-names/pull/4#issuecomment-199565993

goatslacker commented 8 years ago

Published this as 0.3.0