commit f384e3996bbe2e88b07ec5ffe11f42a238fa9d6d
parent e5b9c1b7e306ade9895f21eea18eb9253783901e
Author: Florian Dold <dold@taler.net>
Date: Wed, 22 Jul 2026 10:46:31 +0200
wallet: dispatch only to the worker's own crypto operations
An "in" test also accepts names inherited from Object.prototype, which were
then called as if they were crypto operations.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/taler-wallet-core/src/crypto/workers/worker-common.ts b/packages/taler-wallet-core/src/crypto/workers/worker-common.ts
@@ -78,7 +78,7 @@ export async function processRequestWithImpl(
};
}
- if (!(operation in impl)) {
+ if (!Object.prototype.hasOwnProperty.call(impl, operation)) {
const msg = `crypto operation '${operation}' not found`;
logger.error(msg);
return {