From 099fde307fdd1366cb565b6f5744b38714ff8194 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 14 Nov 2025 17:58:02 +0000 Subject: [PATCH] style: auto format --- lib/routes/bilibili/wasm-exec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/routes/bilibili/wasm-exec.ts b/lib/routes/bilibili/wasm-exec.ts index 0fa21391b..909eed76f 100644 --- a/lib/routes/bilibili/wasm-exec.ts +++ b/lib/routes/bilibili/wasm-exec.ts @@ -147,7 +147,7 @@ }; } - // eslint-disable-next-line n/no-unsupported-features/node-builtins + if (!globalThis.crypto) { throw new Error('globalThis.crypto is not available, polyfill required (crypto.getRandomValues only)'); } @@ -373,7 +373,7 @@ // func getRandomData(r []byte) 'runtime.getRandomData': (sp) => { sp >>>= 0; - // eslint-disable-next-line n/no-unsupported-features/node-builtins + crypto.getRandomValues(loadSlice(sp + 8)); },