Skip to content

Commit 9d1ce0a

Browse files
committed
url: fix array sstring primordials method
1 parent e54e9c4 commit 9d1ce0a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/url.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const {
2828
Int8Array,
2929
ObjectAssign,
3030
ObjectKeys,
31+
StringPrototypeAt,
3132
StringPrototypeCharCodeAt,
3233
StringPrototypeIndexOf,
3334
StringPrototypeReplaceAll,
@@ -954,7 +955,7 @@ Url.prototype.resolveObject = function resolveObject(relative) {
954955
srcPath.unshift('');
955956
}
956957

957-
if (hasTrailingSlash && ArrayPrototypeAt(ArrayPrototypeJoin(srcPath,'/'), -1) !== '/')) {
958+
if (hasTrailingSlash && StringPrototypeAt(ArrayPrototypeJoin(srcPath, '/'), -1) !== '/') {
958959
srcPath.push('');
959960
}
960961

0 commit comments

Comments
 (0)