Skip to content

Commit

Permalink
fix: script error on IE11 due to lack of Object.entries
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-qi committed Jul 17, 2019
1 parent 507cc85 commit 6672b26
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/reconciler/utils.js
Expand Up @@ -84,9 +84,8 @@ export function merge(...sources) {
}
acc = [...acc, ...source];
} else if (source instanceof Object) {
for (const entry of Object.entries(source)) {
const key = entry[0];
let value = entry[1];
for (const key of Object.keys(source)) {
let value = source[key];
if (value instanceof Object && key in acc) {
value = merge(acc[key], value);
}
Expand Down

0 comments on commit 6672b26

Please sign in to comment.