On Sun, Jul 5, 2015 at 3:53 AM, Francisco Tolmasky <[email protected]> wrote:
> Essentially, if the func was function a(a,b,c), is there any way to get
> "a","b", and "c"?

It's not pretty but /^function
[^(]*\((.*?)\)/.exec(func.toString())[1].split(/\s*,\s*/).filter(function(s)
{ return !!s }) should do it.

The .toString() call is not strictly necessary but I put it in for clarity.

-- 
-- 
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