- Version: 7.6.0
- Platform: Darwin Matthews-MBP-2.lan 16.3.0 Darwin Kernel Version 16.3.0: Thu Nov 17 20:23:58
- Subsystem: Unknown
I was able to reduce it down to this code:
tcase.js
function* serialize() {
for(let i = 0; i < 10; i++) {
let value;
let section = {};
debugger;
switch('foo') {
case 'bar':
let items = [];
break;
}
}
}
let gen = serialize();
gen.next();
Run with node --debug-brk --inspect tcase.js. Stop on the debugger and then click to step over. It will crash with 1] 50320 illegal hardware instruction node --debug-brk --inspect tcase.js.
I dumped the output into this gist.