The function definition of foo is in the context after the you've run the
definition. If you want to call it again, just compile and run "foo(2)"
Yang
On Sunday, October 28, 2012 1:17:35 AM UTC+2, ahwood wrote:
>
> For sample:
> function foo(a){
> return a+1;
> }
> foo(1);
>
> I've managed to receive the result '2' in my app using V8. However if I
> want to run the 'foo' again, I have to tell V8 to compile and run it again.
>
> Is there a way to run "foo(2)" without recompiling the code which have
> been defined before?
>
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users