How to use the webidl-conversions.ArrayBuffer function in webidl-conversions

To help you get started, we’ve selected a few webidl-conversions examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github flaviuse / mern-authentication / client / node_modules / jsdom / lib / jsdom / living / generated / WebSocket.js View on Github external
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 {
github sx1989827 / DOClever / node_modules / jsdom / lib / jsdom / living / generated / WebSocket.js View on Github external
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 {

webidl-conversions

Implements the WebIDL algorithms for converting to and from JavaScript values

BSD-2-Clause
Latest version published 3 years ago

Package Health Score

68 / 100
Full package analysis