Skip to content

Commit

Permalink
fix: bad iterator report
Browse files Browse the repository at this point in the history
  • Loading branch information
cha0s committed Nov 26, 2024
1 parent 14accb7 commit 2b4ce4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/codecs/array.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class ArrayCodec {
encoderCode += `
// let the environment report
if (!value[Symbol.iterator]) {
for (const _ of {}) {/* ... */} // eslint-disable-line no-unused-vars
for (const _ of value) {/* ... */} // eslint-disable-line no-unused-vars
}
let protocol = value[Symbol.iterator]();
let result = protocol.next();
Expand All @@ -140,7 +140,7 @@ class ArrayCodec {
let size = 0;
// let the environment report
if (!value[Symbol.iterator]) {
for (const _ of {}) {/* ... */} // eslint-disable-line no-unused-vars
for (const _ of value) {/* ... */} // eslint-disable-line no-unused-vars
}
let protocol = value[Symbol.iterator]();
let result = protocol.next();
Expand Down

0 comments on commit 2b4ce4e

Please sign in to comment.