Hi,

I'm trying to add a function template for the 'eval' function in java
script. I've tried some code like below:

        Handle<ObjectTemplate> global = ObjectTemplate::New();
        global->Set(String::New("eval"),
FunctionTemplate::New(eval_Handler));

where eval_Handler is declared as follows:
        Handle<Value> DOMWindow_eval_Callback(const Arguments& args)
        {
             ......
        }

I'm doing this to record the statements being evaluated by the
function.

While running a script with eval function, I do get this callback.
However, I'm not able to read the args properly here.

Can anyone please suggest on the proper way to extract the statement/
expression being passed to the eval function in the script using the
args in the callback above?

Thank you,
Ravi

-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users

Reply via email to