Skip to content

Commit e34c6b7

Browse files
committed
chore: coverage
1 parent 6d1f4cb commit e34c6b7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/core/util/env.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,16 @@ export const nextTick = (function () {
103103
timerFunc = () => {
104104
port.postMessage(1)
105105
}
106-
} else if (typeof Promise !== 'undefined' && isNative(Promise)) {
106+
} else
107+
/* istanbul ignore next */
108+
if (typeof Promise !== 'undefined' && isNative(Promise)) {
107109
// use microtask in non-DOM environments, e.g. Weex
108110
const p = Promise.resolve()
109111
timerFunc = () => {
110112
p.then(nextTickHandler)
111113
}
112114
} else {
113115
// fallback to setTimeout
114-
/* istanbul ignore next */
115116
timerFunc = () => {
116117
setTimeout(nextTickHandler, 0)
117118
}

0 commit comments

Comments
 (0)