Skip to content

Commit b1eda6b

Browse files
committed
squash: encoding
1 parent dcf13b2 commit b1eda6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/debugger/test-debug-break-on-uncaught.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,14 @@ function runScenario(scriptName, throwsOnLine, next) {
4747
var stderr = '';
4848

4949
function stderrListener(data) {
50-
stderr += data.toString();
50+
stderr += data;
5151
if (stderr.includes('Debugger listening on port')) {
5252
setTimeout(setupClient.bind(null, runTest), 200);
5353
child.stderr.removeListener('data', stderrListener);
5454
}
5555
}
5656

57+
child.stderr.setEncoding('utf8');
5758
child.stderr.on('data', stderrListener);
5859

5960
function setupClient(callback) {

0 commit comments

Comments
 (0)