diff options
-rw-r--r-- | src/library_path.js | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/library_path.js b/src/library_path.js index 09808acd..15086e25 100644 --- a/src/library_path.js +++ b/src/library_path.js @@ -73,12 +73,7 @@ mergeInto(LibraryManager.library, { }, join: function() { var paths = Array.prototype.slice.call(arguments, 0); - return PATH.normalize(paths.filter(function(p, index) { - if (typeof p !== 'string') { - throw new TypeError('Arguments to path.join must be strings'); - } - return p; - }).join('/')); + return PATH.normalize(paths.join('/')); }, resolve: function() { var resolvedPath = '', @@ -134,4 +129,4 @@ mergeInto(LibraryManager.library, { return outputParts.join('/'); } } -});
\ No newline at end of file +}); |