| 8 | #include <emscripten/threading.h> |
| 9 | |
| 10 | EMSCRIPTEN_KEEPALIVE void FinishTest(int result) { |
| 11 | printf("Test finished, result: %d\n", result); |
| 12 | assert(result == 1); |
| 13 | exit(0); |
| 14 | } |
| 15 | |
| 16 | void TestAsyncRunScript() { |
| 17 | // 5. Test emscripten_async_run_script() runs in a pthread. |