Skip to content

Commit d4a167e

Browse files
committed
watcher errors should be handled in production mode as well
1 parent ae9e7da commit d4a167e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/core/observer/watcher.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ export default class Watcher {
9999
this.vm
100100
)
101101
}
102-
/* istanbul ignore else */
103-
if (config.errorHandler) {
104-
config.errorHandler.call(null, e, this.vm)
105-
} else {
106-
throw e
107-
}
102+
}
103+
/* istanbul ignore else */
104+
if (config.errorHandler) {
105+
config.errorHandler.call(null, e, this.vm)
106+
} else {
107+
throw e
108108
}
109109
// return old value when evaluation fails so the current UI is preserved
110110
// if the error was somehow handled by user

0 commit comments

Comments
 (0)