Skip to content

Commit 21bb802

Browse files
tralvesrigor789
authored andcommitted
refactor: clean unused function deepProxy. (#571)
1 parent 23000a9 commit 21bb802

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

platform/nativescript/util/index.js

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -93,25 +93,6 @@ export function after(original, thisArg, wrap) {
9393
}
9494
}
9595

96-
export function deepProxy(object, depth = 0) {
97-
return new Proxy(object, {
98-
get(target, key) {
99-
if (key === 'toString' || key === 'valueOf') {
100-
return () => ''
101-
}
102-
103-
if (key === Symbol.toPrimitive) {
104-
return hint => hint
105-
}
106-
107-
if (depth > 10) {
108-
throw new Error('deepProxy over 10 deep.')
109-
}
110-
return deepProxy({}, depth + 1)
111-
}
112-
})
113-
}
114-
11596
export function updateDevtools() {
11697
if (global.__VUE_DEVTOOLS_GLOBAL_HOOK__) {
11798
try {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy