| Index: src/wasm/wasm-module.cc
|
| diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc
|
| index 7bc382600051d64fd7ecb84818174cf2edca4ba6..4aa5445b49bc537b92e1f0bf7cb574e258e013ad 100644
|
| --- a/src/wasm/wasm-module.cc
|
| +++ b/src/wasm/wasm-module.cc
|
| @@ -319,7 +319,8 @@ void WaitForCompilationTasks(Isolate* isolate, uint32_t* task_ids,
|
| for (size_t i = 0; i < num_tasks; ++i) {
|
| // If the task has not started yet, then we abort it. Otherwise we wait for
|
| // it to finish.
|
| - if (!isolate->cancelable_task_manager()->TryAbort(task_ids[i])) {
|
| + if (isolate->cancelable_task_manager()->TryAbort(task_ids[i]) !=
|
| + CancelableTaskManager::kTaskAborted) {
|
| pending_tasks->Wait();
|
| }
|
| }
|
|
|