| 70 | } |
| 71 | |
| 72 | static void called_async(void* data) { |
| 73 | emscripten_console_log("Hello from a callback"); |
| 74 | em_promise_t promise = data; |
| 75 | emscripten_promise_resolve(promise, EM_PROMISE_FULFILL, NULL); |
| 76 | emscripten_promise_destroy(promise); |
| 77 | } |
| 78 | |
| 79 | static em_promise_result_t |
| 80 | test_promisify(void** result, void* data, void* value) { |
nothing calls this directly
no test coverage detected