[webkit-dev] KJS Test Program
Brent Fulgham
bfulgham at gmail.com
Thu Feb 21 23:01:40 PST 2008
Is it possible to pass command line arguments to a Javascript program
on the command line?
E.g.,:
brent at hopper:/opt/shootout/shootout/bench/nsieve$ /opt/local/bin/
testkjs nsieve.kjs 3
[9074] nsieve.kjs line 32: ReferenceError: Can't find variable:
arguments
Could not open file: 3
brent at hopper:/opt/shootout/shootout/bench/nsieve$ /opt/local/bin/
testkjs nsieve.kjs -- 3
[9076] nsieve.kjs line 32: ReferenceError: Can't find variable:
arguments
Could not open file: --
brent at hopper:/opt/shootout/shootout/bench/nsieve$
Looking over the 'testkjs.cpp' sources, it doesn't appear that you can
pass arguments to the javascript program.
Is there some way to do so? Or should I modify the testkjs.cpp
sources to add the ability to do this?
Thanks,
-Brent
More information about the webkit-dev
mailing list