From 4ffe983922995196f4df2fd206cab56be96edfc8 Mon Sep 17 00:00:00 2001 From: rster20002 Date: Tue, 27 Jul 2021 17:52:20 +0200 Subject: [PATCH] Comply with lint errors --- src/runtime/internal/Component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/runtime/internal/Component.ts b/src/runtime/internal/Component.ts index f68eec4111..98f61b729e 100644 --- a/src/runtime/internal/Component.ts +++ b/src/runtime/internal/Component.ts @@ -106,13 +106,13 @@ function make_dirty(component, i) { } export function attach_error_handler(component, fn) { - return () => { + return (...rest) => { try { - fn.call(this, ...arguments); + fn.call(this, ...rest); } catch (e) { handle_error(component, e); } - } + }; } export function handle_error(component, e) {