Skip to content

Commit

Permalink
fix: ensure nextTick are passed to errorHandler (#6730)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys authored and yyx990803 committed Oct 3, 2017
1 parent 6ad44e1 commit ae347a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/util/env.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const nextTick = (function () {
/* istanbul ignore if */ // $flow-disable-line
if (typeof Promise !== 'undefined' && isNative(Promise)) {
var p = Promise.resolve()
var logError = err => { console.error(err) }
var logError = err => { handleError(err, null, 'nextTick') }
timerFunc = () => {
p.then(nextTickHandler).catch(logError)
// in problematic UIWebViews, Promise.then doesn't completely break, but
Expand Down

0 comments on commit ae347a5

Please sign in to comment.