test_call_v8

13 views
Skip to first unread message

jk_alan

unread,
Aug 10, 2022, 4:28:18 AM8/10/22
to v8-users
There are sample codes in test_call_v8.cpp for using call_v8.

test_call_v8()
    v8::Local<v8::Function> fun = v8::Function::New(isolate->GetCurrentContext(), v8_arg_count).ToLocalChecked();
    ...
    v8pp::call_v8(isolate, fun, fun)->Int32Value(isolate->GetCurrentContext()).FromJust(), 0);

There is two fun argument.  What is the second fun argument for? Do I have to use two fun alwalys?

Thanks.

Jakob Kummerow

unread,
Aug 10, 2022, 4:41:35 AM8/10/22
to v8-users
It appears that you're talking about an external project. V8 itself does not define "v8pp::call_v8".

Maybe reading the comments in the source will help: https://github.com/pmed/v8pp/blob/master/v8pp/call_v8.hpp


--
--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
---
You received this message because you are subscribed to the Google Groups "v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/68154c8b-66f9-40c3-ab12-de1e61df4bd3n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages