From 590bee83da34ffc6e238497f5d5c8930a4602fbf Mon Sep 17 00:00:00 2001 From: Ivan Hofer Date: Wed, 20 Jul 2022 16:55:20 +0200 Subject: [PATCH] revert changes to `clone.ts` --- src/compiler/utils/clone.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/compiler/utils/clone.ts b/src/compiler/utils/clone.ts index d22bac9114..f11ed94967 100644 --- a/src/compiler/utils/clone.ts +++ b/src/compiler/utils/clone.ts @@ -1,5 +1,3 @@ -import { is_function} from '../../runtime/internal/utils'; - // adapted from klona v2.0.4 - https://github.com/lukeed/klona // (c) Luke Edwards, under MIT License @@ -24,7 +22,7 @@ export function clone(val) { enumerable: true, writable: true }); - } else if (!is_function(val[k])) { // MODIFICATION: skip functions + } else if (typeof val[k] !== 'function') { // MODIFICATION: skip functions out[k] = (tmp = val[k]) && typeof tmp === 'object' ? clone(tmp) : tmp; } }