feat: error handling in scheduler

This commit is contained in:
Evan You
2019-08-30 15:15:23 -04:00
parent 966d7b5487
commit 09593c94c3
5 changed files with 45 additions and 56 deletions

View File

@@ -3,7 +3,7 @@ import {
ComponentInstance,
callWithAsyncErrorHandling
} from '@vue/runtime-core'
import { UserExecutionContexts } from 'packages/runtime-core/src/errorHandling'
import { ErrorTypes } from 'packages/runtime-core/src/errorHandling'
interface Invoker extends Function {
value: EventValue
@@ -77,7 +77,7 @@ function createInvoker(value: any, instance: ComponentInstance | null) {
callWithAsyncErrorHandling(
value[i],
instance,
UserExecutionContexts.NATIVE_EVENT_HANDLER,
ErrorTypes.NATIVE_EVENT_HANDLER,
args
)
}
@@ -85,7 +85,7 @@ function createInvoker(value: any, instance: ComponentInstance | null) {
callWithAsyncErrorHandling(
value,
instance,
UserExecutionContexts.NATIVE_EVENT_HANDLER,
ErrorTypes.NATIVE_EVENT_HANDLER,
args
)
}