We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0453af3 commit d101858Copy full SHA for d101858
1 file changed
index.js
@@ -52,6 +52,7 @@ class Agent11 {
52
hostname: match && match[2],
53
port: match && match[3]
54
}
55
+ // perf: this branch has polymorphic inline caches
56
} else if (typeof url === 'object' && url !== null) {
57
return {
58
protocol: url.protocol,
@@ -64,6 +65,7 @@ class Agent11 {
64
65
66
static getKey (url, options) {
67
let key = url.protocol || 'http:'
68
+ // perf: this part has polymorphic inline caches
69
if (key.charAt(key.length - 1) !== ':') {
70
key += ':'
71
0 commit comments