Skip to content

Commit

Permalink
fix: avoid breaking avoriaz edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Feb 8, 2019
1 parent 8a80086 commit 9011b83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/vdom/helpers/normalize-scoped-slots.js
Expand Up @@ -32,7 +32,9 @@ export function normalizeScopedSlots (
res[key] = proxyNormalSlot(normalSlots, key)
}
}
if (slots) {
// avoriaz seems to mock a non-extensible $scopedSlots object
// and when that is passed down this would cause an error
if (Object.isExtensible(slots)) {
(slots: any)._normalized = res
}
def(res, '$stable', slots ? !!slots.$stable : true)
Expand Down

0 comments on commit 9011b83

Please sign in to comment.