summaryrefslogtreecommitdiff
path: root/ext/web/13_message_port.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/web/13_message_port.js')
-rw-r--r--ext/web/13_message_port.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/web/13_message_port.js b/ext/web/13_message_port.js
index 7ec8dc9f9..847daba26 100644
--- a/ext/web/13_message_port.js
+++ b/ext/web/13_message_port.js
@@ -231,7 +231,7 @@
transferredArrayBuffers,
});
- for (const i in arrayBufferIdsInTransferables) {
+ for (let i = 0; i < arrayBufferIdsInTransferables.length; ++i) {
const id = arrayBufferIdsInTransferables[i];
transferables[id] = transferredArrayBuffers[i];
}