Add message to assertion

This commit is contained in:
Fabian 2020-12-31 19:14:31 -06:00
parent d47f0125ef
commit 6364c76ded

View file

@ -751,7 +751,7 @@ CPU.prototype.create_memory = function(size)
dbg_assert((size | 0) > 0);
dbg_assert((size & MMAP_BLOCK_SIZE - 1) === 0);
console.assert(this.memory_size[0] === 0);
console.assert(this.memory_size[0] === 0, "Expected uninitialised memory");
this.memory_size[0] = size;