commit 78fc99d03ccd08f39923345c965982bcfe3bd707
parent 6cb522bba247021cc20133da8705ddd0a597ed62
Author: Florian Dold <florian@dold.me>
Date: Fri, 13 Jun 2025 00:46:31 +0200
embedded wallet: remove testing-dangerously-eval handler
Issue: https://bugs.taler.net/n/10097
Diffstat:
1 file changed, 0 insertions(+), 12 deletions(-)
diff --git a/packages/taler-wallet-embedded/src/wallet-qjs.ts b/packages/taler-wallet-embedded/src/wallet-qjs.ts
@@ -218,18 +218,6 @@ export function installNativeWalletListener(): void {
if (msg.operation.startsWith("anastasis")) {
// Entry point for Anastasis
respMsg = await handleAnastasisRequest(operation, id, msg.args ?? {});
- } else if (msg.operation === "testing-dangerously-eval") {
- // Eval code, used only for testing. No client may rely on this.
- logger.info(`evaluating ${msg.args.jscode}`);
- const f = new Function(msg.args.jscode);
- f();
-
- respMsg = {
- type: "response",
- result: {},
- operation: "testing-dangerously-eval",
- id: msg.id,
- };
} else {
// Entry point for wallet-core
respMsg = await handler.handleMessage(operation, id, msg.args ?? {});