Skip to content

Commit

Permalink
fix: process.cwd is a function not a string (#163). (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyfarrell authored and bcoe committed May 31, 2018
1 parent df102fd commit 9c7802c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/istanbul-lib-source-maps/lib/pathutils.js
Expand Up @@ -9,7 +9,7 @@ var path = require('path'),
exports.isAbsolute = isAbsolute;

exports.asAbsolute = function (file, baseDir) {
return isAbsolute(file) ? file : path.resolve(baseDir || process.cwd, file);
return isAbsolute(file) ? file : path.resolve(baseDir || process.cwd(), file);
};

exports.relativeTo = function (file, origFile) {
Expand Down

0 comments on commit 9c7802c

Please sign in to comment.