Skip to content

Commit 6dfc73d

Browse files
committed
fix proxy bug with this
1 parent cedc0dd commit 6dfc73d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/client/lib/client/linked-list.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ export class DoublyLinkedList<T> {
120120
export const makeEmptyAware = <T extends { length: number }>(obj: T): [T, EventEmitter] => {
121121
const eventEmitter = new EventEmitter();
122122
const proxy = new Proxy(obj, {
123-
get(target, prop, receiver) {
124-
const original = Reflect.get(target, prop, receiver);
123+
get(target, prop, _receiver) {
124+
const original = Reflect.get(target, prop, target);
125125
if (typeof original === 'function') {
126126
return function (...args: any[]) {
127127
const oldLength = target.length;

0 commit comments

Comments
 (0)