fix(runtime-core): make errorCaptured return value handling consistent with Vue 2 (#2289)
fix #2267
This commit is contained in:
@@ -113,7 +113,9 @@ export function handleError(
|
||||
const errorCapturedHooks = cur.ec
|
||||
if (errorCapturedHooks) {
|
||||
for (let i = 0; i < errorCapturedHooks.length; i++) {
|
||||
if (errorCapturedHooks[i](err, exposedInstance, errorInfo)) {
|
||||
if (
|
||||
errorCapturedHooks[i](err, exposedInstance, errorInfo) === false
|
||||
) {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user