Can someone help me with how is V8 initialized in CEF?
Specifically how is the v8::platform created?
rishgarg wrote:I have also exposed the GetCurrentPlatform API from v8 to get v8::Platform*.
rishgarg wrote:I am posting tasks (C++/JS) on the main thread of renderer process. I was trying to call v8::platform::PumpMessageLoop after executing the task in order to tell v8 to execute its delayed tasks(Microtasks). I am seeing a crash as I can see the platform creation is not done via v8::platform::NewDefaultPlatform().
I was wondering how do I notify v8 to run its microtasks upon completion of my task.
Consider the case where I post a JS task(say task1) and in execution of that task I post another JS task(say task2). I would want the microtasks to be cleared up before the execution of task2.
Users browsing this forum: No registered users and 68 guests