Skip to content

Commit 2f912be

Browse files
committed
Prefer forEach over for of so it doesn't require Symbol once transpiled
1 parent 4e28243 commit 2f912be

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/common/index.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,11 @@ function expectWarning(nameOrMap, expected, code) {
184184

185185
class Comparison {
186186
constructor(obj, keys) {
187-
for (const key of keys) {
188-
if (key in obj)
187+
keys.forEach(key => {
188+
if (key in obj) {
189189
this[key] = obj[key];
190-
}
190+
}
191+
});
191192
}
192193
}
193194

0 commit comments

Comments
 (0)