[v8-users] Unexpected error with serialization and JS functions embedded in FunctionTemplate

2020-01-15 Thread Peng-Yu Chen
Hi all, :) I'm playing with Chromium and some of its components (majorly Blink and V8) trying to add some interesting features. Unfortunately there's an unexpected error that has already cost me some time before seeking help here. *1. Brief Description* One of my attempts is to register an API f

[v8-users] Re: WASM not working on Android (embedded)

2020-01-15 Thread Darin Dimitrov
It appears that the WebAssembly compilation is happening on of the v8::Platform's background threads and a task will be posted to the foreground loop to resolve the compilation promise. So I need to pump the message loop: while (v8::platform::PumpMessageLoop(Runtime::platform, isolate, v8:: pla

Re: [v8-users] WASM not working on Android (embedded)

2020-01-15 Thread Clemens Backes
Hi Darin, WebAssembly.instantiate works asynchronously, so you have to keep your program running for a while to wait for the asynchronous result, and keep pumping the message loop and running microtasks to actually execute the compilation tasks and promise resolution tasks that get added from the

[v8-users] WASM not working on Android (embedded)

2020-01-15 Thread Darin Dimitrov
I have embedded V8 (7.8.279.19) inside my Android application and tried executing a script that compiles a WebAssembly module. Unfortunately the promise returned by the "WebAssembly.compile" method is never completed (neither the "then" or the "catch" methods are invoked). The same happens with