Przeglądaj źródła

chore: ignore code that cannot be reached in PhantomJS

Evan You 8 lat temu
rodzic
commit
1c86b9ebeb
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/core/instance/inject.js

+ 1 - 0
src/core/instance/inject.js

@@ -42,6 +42,7 @@ export function resolveInject (inject: any, vm: Component): ?Object {
     const result = Object.create(null)
     const keys = hasSymbol
         ? Reflect.ownKeys(inject).filter(key => {
+          /* istanbul ignore next */
           return Object.getOwnPropertyDescriptor(inject, key).enumerable
         })
         : Object.keys(inject)