From: Evan You Date: Wed, 30 Oct 2019 15:29:08 +0000 (-0400) Subject: chore: fix types X-Git-Tag: v3.0.0-alpha.0~279 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e98c558bf3e7fc1cf8d8c83fd6144e272d7e4682;p=thirdparty%2Fvuejs%2Fcore.git chore: fix types --- diff --git a/packages/runtime-core/src/apiWatch.ts b/packages/runtime-core/src/apiWatch.ts index 4a8248aa0a..9f530661b2 100644 --- a/packages/runtime-core/src/apiWatch.ts +++ b/packages/runtime-core/src/apiWatch.ts @@ -138,8 +138,7 @@ function doWatch( let cleanup: Function const registerCleanup: CleanupRegistrator = (fn: () => void) => { - // TODO wrap the cleanup fn for error handling - cleanup = runner.onStop = () => { + cleanup = runner.options.onStop = () => { callWithErrorHandling(fn, instance, ErrorCodes.WATCH_CLEANUP) } }