From 884f49d6b5f10bec06bd803eb1ac9e7e47656951 Mon Sep 17 00:00:00 2001 From: Jeff Parsons Date: Sat, 1 Aug 2015 01:07:01 -0700 Subject: [PATCH] Fixed asserts --- modules/pcjs/lib/memory.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/pcjs/lib/memory.js b/modules/pcjs/lib/memory.js index 5d5ec5b02..08adaf69b 100644 --- a/modules/pcjs/lib/memory.js +++ b/modules/pcjs/lib/memory.js @@ -566,14 +566,14 @@ Memory.prototype = { this.resetReadAccess(); if (DEBUG && this.dbg) this.dbg.println("all read breakpoints removed from memory block " + str.toHex(this.addr)); } - if (DEBUG && this.dbg) this.dbg.assert(this.cReadBreakpoints >= 0); + Component.assert(this.cReadBreakpoints >= 0); } else { if (--this.cWriteBreakpoints === 0) { this.resetWriteAccess(); if (DEBUG && this.dbg) this.dbg.println("all write breakpoints removed from memory block " + str.toHex(this.addr)); } - if (DEBUG && this.dbg) this.dbg.assert(this.cWriteBreakpoints >= 0); + Component.assert(this.cWriteBreakpoints >= 0); } }, /**