Răsfoiți Sursa

chore: coverage

Evan You 8 ani în urmă
părinte
comite
e34c6b78bd
1 a modificat fișierele cu 3 adăugiri și 2 ștergeri
  1. 3 2
      src/core/util/env.js

+ 3 - 2
src/core/util/env.js

@@ -103,7 +103,9 @@ export const nextTick = (function () {
     timerFunc = () => {
       port.postMessage(1)
     }
-  } else if (typeof Promise !== 'undefined' && isNative(Promise)) {
+  } else
+  /* istanbul ignore next */
+  if (typeof Promise !== 'undefined' && isNative(Promise)) {
     // use microtask in non-DOM environments, e.g. Weex
     const p = Promise.resolve()
     timerFunc = () => {
@@ -111,7 +113,6 @@ export const nextTick = (function () {
     }
   } else {
     // fallback to setTimeout
-    /* istanbul ignore next */
     timerFunc = () => {
       setTimeout(nextTickHandler, 0)
     }