fix: update Reflect.get receiver to target in pos_store proxy handlers

This commit is contained in:
Suherdy Yacob 2026-06-03 15:20:14 +07:00
parent 05ab799192
commit 3ce178a631

View File

@ -142,7 +142,7 @@ patch(PosStore.prototype, {
decimalPart: '',
};
}
let value = Reflect.get(target, prop, receiver);
let value = Reflect.get(target, prop, target);
if (typeof value === 'function') {
return value.bind(receiver);
}
@ -170,7 +170,7 @@ patch(PosStore.prototype, {
if (prop === 'lines') {
return changedLines;
}
let value = Reflect.get(target, prop, receiver);
let value = Reflect.get(target, prop, target);
if (typeof value === 'function') {
return value.bind(receiver);
}