Just do a toString() on the function and then use a regex to parse out the 
parameters:

var f = function(a, b, c) {};

            f.toString().
              match(/^function[ _$\w]*\(([ ,\w]*)/)[1].
              split(',').
              map(function(name) { return name.trim(); });

> ["a", "b", "c"]

On Saturday, 4 July 2015 21:53:37 UTC-4, Francisco Tolmasky wrote:
>
> Essentially, if the func was function a(a,b,c), is there any way to get 
> "a","b", and "c"?
>

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to