We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e54e9c4 commit 9d1ce0aCopy full SHA for 9d1ce0a
lib/url.js
@@ -28,6 +28,7 @@ const {
28
Int8Array,
29
ObjectAssign,
30
ObjectKeys,
31
+ StringPrototypeAt,
32
StringPrototypeCharCodeAt,
33
StringPrototypeIndexOf,
34
StringPrototypeReplaceAll,
@@ -954,7 +955,7 @@ Url.prototype.resolveObject = function resolveObject(relative) {
954
955
srcPath.unshift('');
956
}
957
- if (hasTrailingSlash && ArrayPrototypeAt(ArrayPrototypeJoin(srcPath,'/'), -1) !== '/')) {
958
+ if (hasTrailingSlash && StringPrototypeAt(ArrayPrototypeJoin(srcPath, '/'), -1) !== '/') {
959
srcPath.push('');
960
961
0 commit comments