Unhandled exception occuring

12 views
Skip to first unread message

swathi jakkam

unread,
Apr 16, 2012, 2:34:49 AM4/16/12
to v8-users
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.


Peter Enerccio

unread,
Apr 16, 2012, 2:41:18 AM4/16/12
to v8-u...@googlegroups.com
By unhandled exception, do you mean seg fault? If so, please give out the backtrace as well.

2012/4/16 swathi jakkam <jakkams...@gmail.com>



--
Bc. Peter Vaňušanik
http://www.bishojo.tk

Reply all
Reply to author
Forward
0 new messages