To debug some concepts I run this in Chrome Console:
what = function(){
let value = 5
try {
wrong();
} catch(e) {
console.log('bad');
value += 1
}
return value
}
what()
# returns 6
Works as expected, except console.log('bad')
never happens.
obviously the fact that value = 6 and not 5 is proof that block is called.
Why does console.log just get skipped in the console? I'm pretty sure I've injected JS into apps where the console.log works so this is probably a setting in the console window itself. Firefox's behavior is the same.