catch error while dispatching codeChanged event

fixGetTrace
yann300 4 years ago
parent 3898873b67
commit ab8f1fb993
  1. 6
      libs/remix-debug/src/code/codeManager.js

@ -142,7 +142,11 @@ function retrieveIndexAndTrigger (codeMananger, address, step, code) {
} catch (error) {
return console.log(error)
}
codeMananger.event.trigger('changed', [code, address, result])
try {
codeMananger.event.trigger('changed', [code, address, result])
} catch (e) {
console.log('dispatching event failed', e)
}
}
module.exports = CodeManager

Loading…
Cancel
Save