]> git.codecow.com Git - nano-pow.git/commitdiff
Display debug output on initial WASM compilation.
authorChris Duncan <chris@codecow.com>
Fri, 10 Jul 2026 05:23:20 +0000 (22:23 -0700)
committerChris Duncan <chris@codecow.com>
Fri, 10 Jul 2026 05:23:20 +0000 (22:23 -0700)
test/index.html

index 7e3269cee72c9d3adf77fbe21809b3e065828734..f6b41d0b2ad1648a01d9875fdbdbf325e45a43c7 100644 (file)
@@ -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) {