Skip to content

Commit 691a4b9

Browse files
committed
perf(reactivity): no need to proxy has/ownKeys for readonly objects
1 parent c0427b4 commit 691a4b9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

packages/reactivity/src/baseHandlers.ts

-2
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,6 @@ export const mutableHandlers: ProxyHandler<object> = {
174174

175175
export const readonlyHandlers: ProxyHandler<object> = {
176176
get: readonlyGet,
177-
has,
178-
ownKeys,
179177
set(target, key) {
180178
if (__DEV__) {
181179
console.warn(

0 commit comments

Comments
 (0)