mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 07:27:22 +01:00
ec378aaa69
This makes the output of simple/test-debugger-repl and simle/test-debugger-repl-utf8 mirror an actual debugger session, so it's a bit easier to reason about. Also, it uses the same code for both, and fixes it so that it doesn't leave zombie processes lying around when it crashes. Run 1000 times without any failures or zombies.
24 lines
236 B
JavaScript
24 lines
236 B
JavaScript
debugger;
|
|
function a(x) {
|
|
var i = 10;
|
|
while (--i != 0);
|
|
debugger;
|
|
return i;
|
|
}
|
|
function b() {
|
|
return ['こんにち', 'わ'].join(' ');
|
|
}
|
|
a();
|
|
a(1);
|
|
b();
|
|
b();
|
|
|
|
|
|
|
|
setInterval(function() {
|
|
}, 5000);
|
|
|
|
|
|
now = new Date();
|
|
debugger;
|