Skip to content

Conversation

@unbyte
Copy link
Contributor

@unbyte unbyte commented Oct 2, 2020

close #2267

for (let i = 0; i < errorCapturedHooks.length; i++) {
if (errorCapturedHooks[i](err, exposedInstance, errorInfo)) {
if (
errorCapturedHooks[i](err, exposedInstance, errorInfo) === false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@yyx990803 yyx990803 merged commit 4d20ac8 into vuejs:master Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

errorCaptured reverse behavior

3 participants