Skip to content

Commit 4675728

Browse files
committed
fix coverage
1 parent 313ad8f commit 4675728

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/core/util/env.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export const isIOS = UA && /iphone|ipad|ipod|ios/.test(UA)
2121
// detect devtools
2222
export const devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__
2323

24+
/* istanbul ignore next */
2425
function isNative (Ctor: Function): boolean {
2526
return /native code/.test(Ctor.toString())
2627
}
@@ -50,6 +51,7 @@ export const nextTick = (function () {
5051
// UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
5152
// completely stops working after triggering a few times... so, if native
5253
// Promise is available, we will use it:
54+
/* istanbul ignore if */
5355
if (typeof Promise !== 'undefined' && isNative(Promise)) {
5456
var p = Promise.resolve()
5557
timerFunc = () => {
@@ -76,6 +78,7 @@ export const nextTick = (function () {
7678
}
7779
} else {
7880
// fallback to setTimeout
81+
/* istanbul ignore next */
7982
timerFunc = setTimeout
8083
}
8184

0 commit comments

Comments
 (0)