feat(createRenderer): handle errors in function refs (#403)
This commit is contained in:
committed by
Evan You
parent
34989ef7fe
commit
325e15ef41
@@ -16,6 +16,7 @@ export const enum ErrorCodes {
|
||||
DIRECTIVE_HOOK,
|
||||
APP_ERROR_HANDLER,
|
||||
APP_WARN_HANDLER,
|
||||
FUNCTION_REF,
|
||||
SCHEDULER
|
||||
}
|
||||
|
||||
@@ -43,6 +44,7 @@ export const ErrorTypeStrings: Record<number | string, string> = {
|
||||
[ErrorCodes.DIRECTIVE_HOOK]: 'directive hook',
|
||||
[ErrorCodes.APP_ERROR_HANDLER]: 'app errorHandler',
|
||||
[ErrorCodes.APP_WARN_HANDLER]: 'app warnHandler',
|
||||
[ErrorCodes.FUNCTION_REF]: 'ref function',
|
||||
[ErrorCodes.SCHEDULER]:
|
||||
'scheduler flush. This is likely a Vue internals bug. ' +
|
||||
'Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/vue'
|
||||
|
||||
Reference in New Issue
Block a user