You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1281,11 +1287,13 @@ var require_webidl = __commonJS({
1281
1287
}
1282
1288
returnString(V);
1283
1289
};
1284
-
varisLatin1=/^[\u0000-\u00ff]{0,}$/;
1285
1290
webidl.converters.ByteString=function(V){
1286
1291
constx=webidl.converters.DOMString(V);
1287
-
if(!isLatin1.test(x)){
1288
-
thrownewTypeError("Argument is not a ByteString");
1292
+
for(letindex=0;index<x.length;index++){
1293
+
constcharCode=x.charCodeAt(index);
1294
+
if(charCode>255){
1295
+
thrownewTypeError(`Cannot convert argument to a ByteString because the character atindex ${index} has a value of ${charCode} which is greater than 255.`);
1296
+
}
1289
1297
}
1290
1298
returnx;
1291
1299
};
@@ -2580,7 +2588,7 @@ var require_request = __commonJS({
0 commit comments