Fix typo in variable name for array of promises

Change-Id: Ice10c1aec271a090f53a5e6d5b74006981d1bb79
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/212215
Commit-Queue: Jaswant Panchumarti <jaswant.panchumarti@kitware.com>
Auto-Submit: Jaswant Panchumarti <jaswant.panchumarti@kitware.com>
Commit-Queue: Loko Kung <lokokung@google.com>
Reviewed-by: Loko Kung <lokokung@google.com>
diff --git a/third_party/emdawnwebgpu/library_webgpu.js b/third_party/emdawnwebgpu/library_webgpu.js
index cfdf8c0..40e6378 100644
--- a/third_party/emdawnwebgpu/library_webgpu.js
+++ b/third_party/emdawnwebgpu/library_webgpu.js
@@ -587,7 +587,7 @@
     if (timeoutNSPtr) {
       var timeoutMS = {{{ gpu.makeGetU64('timeoutNSPtr', 0) }}} / 1000000;
       promises.length = futureCount + 1;
-      promise[futureCount] = new Promise((resolve) => setTimeout(resolve, timeoutMS, 0));
+      promises[futureCount] = new Promise((resolve) => setTimeout(resolve, timeoutMS, 0));
     } else {
       promises.length = futureCount;
     }