Skip to content

Commit 1bac623

Browse files
committed
update test/max_listeners.js to use path.join for cross-platform compatibility see: #314 (comment)
1 parent b9ab50e commit 1bac623

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/max_listeners.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
var spawn = require('child_process').spawn;
2-
var ps = spawn(process.execPath, [ __dirname + '/max_listeners/source.js' ]);
2+
var path = require('path');
3+
4+
var ps = spawn(process.execPath, [path.join(__dirname, 'max_listeners', 'source.js')]);
5+
36
ps.stdout.pipe(process.stdout, { end : false });
47

58
ps.stderr.on('data', function (buf) {

0 commit comments

Comments
 (0)