0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test/fixtures/breakpoints.js
Rich Trott 991ce2daf3 test: fix test-debugger-repl-term
test-debugger-repl-term had incorrect expected output and so was
failing. It was likely dependent on previous bugs in the debugger.
The fixture file has been modified so that the output is as expected.

PR-URL: https://github.com/nodejs/node/pull/6682
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
Reviewed-By: Ben Noorhduis <info@bnoordhuis.nl>
2016-05-12 20:23:18 -07:00

24 lines
240 B
JavaScript

debugger;
function a(x) {
var i = 10;
while (--i != 0);
debugger;
return i;
}
function b() {
return ['hello', 'world'].join(' ');
}
a();
debugger;
a(1);
b();
b();
setInterval(function() {
}, 5000);
now = new Date();
debugger;