From: Chris Duncan Date: Fri, 10 Jul 2026 05:23:20 +0000 (-0700) Subject: Display debug output on initial WASM compilation. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=4aa1e1158aaf4ec9dcc62eb0dc1f6d800859ab04;p=nano-pow.git Display debug output on initial WASM compilation. --- diff --git a/test/index.html b/test/index.html index 7e3269c..f6b41d0 100644 --- a/test/index.html +++ b/test/index.html @@ -37,7 +37,7 @@ SPDX-License-Identifier: GPL-3.0-or-later try { ({ Cache, stats } = await import('https://cdn.jsdelivr.net/npm/nano-pow@5.1/dist/utils/index.js')) } catch (err) { - throw new Error(`Failed to load NanoPow ${err}`) + throw new Error(`Failed to load NanoPow utilities ${err}`) } } } @@ -72,7 +72,7 @@ SPDX-License-Identifier: GPL-3.0-or-later async function run (size, difficulty, effort, api, isOutputShown, isDebug, isSelfCheck) { // Generate once on load to compile shaders and initialize buffers - await NanoPow.work_generate(random(), { api, difficulty: '0' }) + await NanoPow.work_generate(random(), { api, difficulty: '0', debug: isDebug}) const type = api api = type.toLowerCase() if (isSelfCheck) {