Reverted the update
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 31s
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 31s
This commit is contained in:
6
node_modules/undici/lib/fetch/webidl.js
generated
vendored
6
node_modules/undici/lib/fetch/webidl.js
generated
vendored
@ -427,10 +427,12 @@ webidl.converters.ByteString = function (V) {
|
||||
// 2. If the value of any element of x is greater than
|
||||
// 255, then throw a TypeError.
|
||||
for (let index = 0; index < x.length; index++) {
|
||||
if (x.charCodeAt(index) > 255) {
|
||||
const charCode = x.charCodeAt(index)
|
||||
|
||||
if (charCode > 255) {
|
||||
throw new TypeError(
|
||||
'Cannot convert argument to a ByteString because the character at ' +
|
||||
`index ${index} has a value of ${x.charCodeAt(index)} which is greater than 255.`
|
||||
`index ${index} has a value of ${charCode} which is greater than 255.`
|
||||
)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user