You'll need something in place that has compiled the code, or at least
parsed it enough to give you the information you would find in the
symbol table.  It's possible that you could maybe do something with
the built-in v8 debugger protocol to extract what you need.  JSLint is
also surprisingly good at this.  Other parsers like Esprima might fit
your needs better.  Pair that with something like a var_dump or
print_r like function from PHP would get you a long ways.  For a list
of parsers, see this list on github [0].

[0] 
https://github.com/jashkenas/coffeescript/wiki/List-of-languages-that-compile-to-JS

On Fri, Feb 20, 2015 at 9:55 AM, Jeroen Ooms <[email protected]> wrote:
> On Fri, Feb 20, 2015 at 1:54 AM, jaison pj <[email protected]> wrote:
>> How we can pass the readed content of a file(as a string variable) to a
>> javascript funcrion ?
>
> This was not the question. The question is how do we find which
> variables available from the global scope match a certain pattern. I
> know how to do IO.
>
> --
> --
> 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.

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