To repro:
class Foo {
x() {
const tmp = this.y;
tmp(); // no error if we call this.y() directly
}
y() {}
}
const foo = new Foo();
const proxiedFoo = onChange(foo, () => {});
proxiedFoo.x();
Error is thrown on this line:
Line 164 in a40d3b9
thisArg
is undefined
)Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too