summaryrefslogtreecommitdiff
path: root/ext/web
diff options
context:
space:
mode:
authorKenta Moriuchi <moriken@kimamass.com>2022-12-22 10:54:38 +0900
committerGitHub <noreply@github.com>2022-12-22 02:54:38 +0100
commit156fef9ceae212950f7355d5e3ca8d6e4890cfe0 (patch)
treee6e43986c639cb09f6bab02380d760a72db575ff /ext/web
parent4258e06f87f33e1cbf434f5040fc8dfabe254c12 (diff)
fix(ext): Add checks for owning properties in for-in loops (#17139)
In the for-in loops, there were a few places where we forgot to check if objects owned some properties, so I added them.
Diffstat (limited to 'ext/web')
-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];
}