S
schettino72
hi,
how can i get a list of all local variables defined in a function?
cheers,
Eduardo
how can i get a list of all local variables defined in a function?
cheers,
Eduardo
schettino72 said:how can i get a list of all local variables defined in a function?
how can i get a list of all local variables defined in a function?
Why would you need that for?
schettino72 said:I writing a unit test framework for javascript. Test cases are
defined by extending my TestCase base class.
I want to automatically find all defined test cases, so I need
to introspect the code somehow.
I solved my problem putting the test cases out of my "function" and
doing
for (var o in top){
....
I am not worried about this...JScript 5.0, ECMAScript 3,
this was quick and dirty. i will probably load them in my own object/and that `top' is a host-defined property of
the Global Object,
it worked fine with what i have in hand. but "always" is a too strongare you sure the results your test framework yields
are always correct?
schettino72 said:this was quick and dirty. i will probably load them in my own object/
namespace
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.