diff options
Diffstat (limited to 'src/utility.js')
-rw-r--r-- | src/utility.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utility.js b/src/utility.js index f0439ea7..737d515a 100644 --- a/src/utility.js +++ b/src/utility.js @@ -64,6 +64,10 @@ function assertTrue(a, msg) { assert = assertTrue; function warn(a, msg) { + if (!msg) { + msg = a; + a = false; + } if (!a) { dprint('Warning: ' + msg); } |