From 99f98d09f2a97f308406ec35aa9ff99ff3f00449 Mon Sep 17 00:00:00 2001 From: Tiago Alves Date: Mon, 28 Oct 2019 14:54:05 +0000 Subject: [PATCH] Clean unused function deepProxy. --- platform/nativescript/util/index.js | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/platform/nativescript/util/index.js b/platform/nativescript/util/index.js index 332fbaf5..b9eb1289 100644 --- a/platform/nativescript/util/index.js +++ b/platform/nativescript/util/index.js @@ -93,25 +93,6 @@ export function after(original, thisArg, wrap) { } } -export function deepProxy(object, depth = 0) { - return new Proxy(object, { - get(target, key) { - if (key === 'toString' || key === 'valueOf') { - return () => '' - } - - if (key === Symbol.toPrimitive) { - return hint => hint - } - - if (depth > 10) { - throw new Error('deepProxy over 10 deep.') - } - return deepProxy({}, depth + 1) - } - }) -} - export function updateDevtools() { if (global.__VUE_DEVTOOLS_GLOBAL_HOOK__) { try {