File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ export const isIOS = UA && /iphone|ipad|ipod|ios/.test(UA)
2121// detect devtools
2222export const devtools = inBrowser && window . __VUE_DEVTOOLS_GLOBAL_HOOK__
2323
24+ /* istanbul ignore next */
2425function isNative ( Ctor : Function ) : boolean {
2526 return / n a t i v e c o d e / . 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
You can’t perform that action at this time.
0 commit comments