mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2025-02-26 07:29:12 +00:00
fixed instanceof EmuHalt
This commit is contained in:
parent
82ebc47caa
commit
48eb75882b
@ -583,7 +583,7 @@ Sentry.init({
|
||||
},
|
||||
beforeSend(event, hint) {
|
||||
const error = hint.originalException;
|
||||
if (error instanceof EmuHalt) return null; // ignore EmuHalt
|
||||
if (error && error.hasOwnProperty('$loc')) return null; // ignore EmuHalt
|
||||
return event;
|
||||
},
|
||||
});
|
||||
|
@ -128,3 +128,11 @@ describe('string functions', function() {
|
||||
assert.ok(util.isProbablyBinary(null, [0xf0,0x12])); // ran out of data
|
||||
});
|
||||
});
|
||||
|
||||
describe('EmuHalt', function() {
|
||||
it('Should detect emuhalt', function() {
|
||||
var e = new emu.EmuHalt();
|
||||
assert.ok(e instanceof emu.EmuHalt);
|
||||
assert.ok(e.hasOwnProperty('$loc'));
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user