Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
squash: encoding
  • Loading branch information
Trott committed May 23, 2016
commit b1eda6b914166f77e21007e4b60ae356be058be3
3 changes: 2 additions & 1 deletion test/debugger/test-debug-break-on-uncaught.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,14 @@ function runScenario(scriptName, throwsOnLine, next) {
var stderr = '';

function stderrListener(data) {
stderr += data.toString();
stderr += data;
if (stderr.includes('Debugger listening on port')) {
setTimeout(setupClient.bind(null, runTest), 200);
child.stderr.removeListener('data', stderrListener);
}
}

child.stderr.setEncoding('utf8');
child.stderr.on('data', stderrListener);

function setupClient(callback) {
Expand Down