aboutsummaryrefslogtreecommitdiff
path: root/src/library_path.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-10-28 14:24:15 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-10-28 14:24:15 -0700
commit03ad4ea44efa450c46405df7b048859841681782 (patch)
treeba798f5416e1eab021844b0f46c5b38bdc6e8239 /src/library_path.js
parent5044dd694d064aff6cea7cc48bc81f1f190177ad (diff)
remove assertion code from PATH.join
Diffstat (limited to 'src/library_path.js')
-rw-r--r--src/library_path.js9
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
+});