Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const args = [];
{
let curArg = arguments[0];
if (isBlob(curArg)) {
{
let curArg = arguments[0];
curArg = convertBlob(curArg, { context: "Failed to execute 'send' on 'WebSocket': parameter 1" });
args.push(curArg);
}
} else if (
curArg instanceof ArrayBuffer ||
(typeof SharedArrayBuffer !== "undefined" && curArg instanceof SharedArrayBuffer)
) {
{
let curArg = arguments[0];
curArg = conversions["ArrayBuffer"](curArg, {
context: "Failed to execute 'send' on 'WebSocket': parameter 1"
});
args.push(curArg);
}
} else if (ArrayBuffer.isView(curArg)) {
{
let curArg = arguments[0];
if (ArrayBuffer.isView(curArg)) {
} else {
throw new TypeError(
"Failed to execute 'send' on 'WebSocket': parameter 1" + " is not of any supported type."
);
}
args.push(curArg);
}
} else {
const args = [];
{
let curArg = arguments[0];
if (isBlob(curArg)) {
{
let curArg = arguments[0];
curArg = convertBlob(curArg, { context: "Failed to execute 'send' on 'WebSocket': parameter 1" });
args.push(curArg);
}
} else if (
curArg instanceof ArrayBuffer ||
(typeof SharedArrayBuffer !== "undefined" && curArg instanceof SharedArrayBuffer)
) {
{
let curArg = arguments[0];
curArg = conversions["ArrayBuffer"](curArg, {
context: "Failed to execute 'send' on 'WebSocket': parameter 1"
});
args.push(curArg);
}
} else if (ArrayBuffer.isView(curArg)) {
{
let curArg = arguments[0];
if (ArrayBuffer.isView(curArg)) {
} else {
throw new TypeError(
"Failed to execute 'send' on 'WebSocket': parameter 1" + " is not of any supported type."
);
}
args.push(curArg);
}
} else {