Hi,

I wrote a sample example in v8. From v8 I call the java script
function. but here i got unhandled exception occur.

observer below code it is in javascript file.:

function JS_dump()
{
  print("JS_DUMP");
}

below code in v8. from v8 i call the javascript function from v8.

v8::Local<v8::Function> func = 8::Local<v8::Function>::Cast(context-
>Global()->Get(v8::String::New("JS_dump")));

v8::Handle<v8::Value> result = func->Call(func, 0, NULL);

printf("Function result: %d\n", result->Int32Value());


but here first line that means FUNC i got error.Could you please any
one tell solution for this one.


Regards,
swathi.


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

Reply via email to