Просмотр исходного кода

chore: fix e2e test in phantomjs

Evan You 7 лет назад
Родитель
Сommit
b2a093fa03
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/core/vdom/helpers/normalize-scoped-slots.js

+ 1 - 1
src/core/vdom/helpers/normalize-scoped-slots.js

@@ -34,7 +34,7 @@ export function normalizeScopedSlots (
   }
   // avoriaz seems to mock a non-extensible $scopedSlots object
   // and when that is passed down this would cause an error
-  if (Object.isExtensible(slots)) {
+  if (slots && Object.isExtensible(slots)) {
     (slots: any)._normalized = res
   }
   def(res, '$stable', slots ? !!slots.$stable : true)