diff --git a/third_party/emdawnwebgpu/library_webgpu.js b/third_party/emdawnwebgpu/library_webgpu.js index 0041c106c03..0d05bbb7ddf 100644 --- a/third_party/emdawnwebgpu/library_webgpu.js +++ b/third_party/emdawnwebgpu/library_webgpu.js @@ -95,7 +95,7 @@ var LibraryWebGPU = { #if ASYNCIFY var futureId = futureIdH * 0x100000000 + futureIdL; WebGPU._futures[futureId] = - new Promise((resolve) => promise.finally(resolve(futureId))); + new Promise((resolve) => promise.finally(() => resolve(futureId))); #endif }, _waitAnyPromisesList: [],