Skip to content

Commit a15bc79

Browse files
committed
Fix browserify's test/paths.js in Node 0.8
path.delimiter appeared in Node 0.10
1 parent 2d549a7 commit a15bc79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ function Deps (opts) {
3939

4040
this.paths = opts.paths || process.env.NODE_PATH || '';
4141
if (typeof this.paths === 'string') {
42-
this.paths = this.paths.split(path.delimiter);
42+
var delimiter = path.delimiter || (process.platform === 'win32' ? ';' : ':');
43+
this.paths = this.paths.split(delimiter);
4344
}
4445
this.paths = this.paths
4546
.filter(Boolean)

0 commit comments

Comments
 (0)