Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upfix(runtime-core): consist with vue2's error capturing behavior #2289
Conversation
| @@ -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 |
edison1105
Oct 2, 2020
Contributor
!errorCapturedHooks[i](err, exposedInstance, errorInfo) is better.
!errorCapturedHooks[i](err, exposedInstance, errorInfo) is better.
unbyte
Oct 2, 2020
Author
Contributor
false !== falsy values, and vue 2 uses === false
false !== falsy values, and vue 2 uses === false

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

close #2267