diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-28 14:24:15 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-28 14:24:15 -0700 |
commit | 03ad4ea44efa450c46405df7b048859841681782 (patch) | |
tree | ba798f5416e1eab021844b0f46c5b38bdc6e8239 /src/library_path.js | |
parent | 5044dd694d064aff6cea7cc48bc81f1f190177ad (diff) |
remove assertion code from PATH.join
Diffstat (limited to 'src/library_path.js')
-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 +}); |