summaryrefslogtreecommitdiff
path: root/lib/url.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/url.js')
-rw-r--r--lib/url.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.js b/lib/url.js
index d27891d36b..cb524fd9a8 100644
--- a/lib/url.js
+++ b/lib/url.js
@@ -883,7 +883,7 @@ Url.prototype.resolveObject = function resolveObject(relative) {
// if the path is allowed to go above the root, restore leading ..s
if (!mustEndAbs && !removeAllDots) {
- for (; up--; up) {
+ while (up--) {
srcPath.unshift('..');
}
}