From ab5bf2bdd2168dae62fa144189b423c91a11ff0e Mon Sep 17 00:00:00 2001 From: Smitty Date: Sat, 30 Oct 2021 19:36:19 -0400 Subject: [PATCH] make stub assert impl check cond --- public/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index 5862bb8..27d44b8 100644 --- a/public/script.js +++ b/public/script.js @@ -1,6 +1,6 @@ "use strict"; -if (!console.assert) console.assert = () => {}; +if (!console.assert) console.assert = cond => { if (!cond) throw new Error("assertion failed") }; let can, ctx, gridCan, gridCtx; let state = { -- 2.45.2