Skip to content

Commit 6672b26

Browse files
authored
fix: script error on IE11 due to lack of Object.entries
1 parent 507cc85 commit 6672b26

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/reconciler/utils.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,8 @@ export function merge(...sources) {
8484
}
8585
acc = [...acc, ...source];
8686
} else if (source instanceof Object) {
87-
for (const entry of Object.entries(source)) {
88-
const key = entry[0];
89-
let value = entry[1];
87+
for (const key of Object.keys(source)) {
88+
let value = source[key];
9089
if (value instanceof Object && key in acc) {
9190
value = merge(acc[key], value);
9291
}

0 commit comments

Comments
 (0)