The Wayback Machine - https://web.archive.org/web/20201005002614/https://github.com/vuejs/vue-next/pull/2289
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(runtime-core): consist with vue2's error capturing behavior #2289

Open
wants to merge 3 commits into
base: master
from

Conversation

@unbyte
Copy link
Contributor

@unbyte unbyte commented Oct 2, 2020

close #2267

@@ -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

This comment has been minimized.

@edison1105

edison1105 Oct 2, 2020
Contributor

!errorCapturedHooks[i](err, exposedInstance, errorInfo) is better.

This comment has been minimized.

@unbyte

unbyte Oct 2, 2020
Author Contributor

false !== falsy values, and vue 2 uses === false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

2 participants
You can’t perform that action at this time.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.