push
github
2709 of 2920 branches covered (0.0%)
Branch coverage included in aggregate %.
1 of 1 new or added line in 1 file covered. (100.0%)
12450 of 13939 relevant lines covered (89.32%)
6528.63 hits per line
1 |
/* --------------------
|
|
2 |
* livepack module |
31✔ |
3 |
* Shared globals |
31✔ |
4 |
* ------------------*/ |
31✔ |
5 |
|
31✔ |
6 |
'use strict';
|
31✔ |
7 |
|
31✔ |
8 |
// Exports
|
31✔ |
9 |
|
31✔ |
10 |
// URL symbols were removed in NodeJS v20.0.0
|
31✔ |
11 |
const url = new URL('http://x'); |
31✔ |
12 |
let URLSymbols = Object.getOwnPropertySymbols(url.searchParams); |
31✔ |
13 |
|
31✔ |
14 |
let URLQuerySymbol, URLContextSymbol, URLContext; |
31✔ |
15 |
if (URLSymbols.length === 2) { |
31✔ |
16 |
[URLQuerySymbol, URLContextSymbol] = URLSymbols; |
31✔ |
17 |
URLContext = url[URLContextSymbol].constructor; |
31✔ |
18 |
} else {
|
|
19 |
URLSymbols = undefined;
|
× |
20 |
} |
× |
21 |
|
31✔ |
22 |
module.exports = { |
31✔ |
23 |
URLSymbols, |
31✔ |
24 |
URLContextSymbol, |
31✔ |
25 |
URLQuerySymbol, |
31✔ |
26 |
URLContext |
31✔ |
27 |
}; |
31✔ |