How to use the webidl-conversions.short 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 sx1989827 / DOClever / Server / node_modules / jsdom / lib / jsdom / living / generated / MouseEventInit.js View on Github external
convertInherit(obj, ret, { context = "The provided value" } = {}) {
    EventModifierInit.convertInherit(obj, ret, { context });

    {
      const key = "button";
      let value = obj === undefined || obj === null ? undefined : obj[key];
      if (value !== undefined) {
        value = conversions["short"](value, { context: context + " has member button that" });

        ret[key] = value;
      } else {
        ret[key] = 0;
      }
    }

    {
      const key = "buttons";
      let value = obj === undefined || obj === null ? undefined : obj[key];
      if (value !== undefined) {
        value = conversions["unsigned short"](value, { context: context + " has member buttons that" });

        ret[key] = value;
      } else {
        ret[key] = 0;
github sx1989827 / DOClever / node_modules / jsdom / lib / jsdom / living / generated / MouseEventInit.js View on Github external
convertInherit(obj, ret, { context = "The provided value" } = {}) {
    EventModifierInit.convertInherit(obj, ret, { context });

    {
      const key = "button";
      let value = obj === undefined || obj === null ? undefined : obj[key];
      if (value !== undefined) {
        value = conversions["short"](value, { context: context + " has member button that" });

        ret[key] = value;
      } else {
        ret[key] = 0;
      }
    }

    {
      const key = "buttons";
      let value = obj === undefined || obj === null ? undefined : obj[key];
      if (value !== undefined) {
        value = conversions["unsigned short"](value, { context: context + " has member buttons that" });

        ret[key] = value;
      } else {
        ret[key] = 0;
github zubairghori / Ultimate_todo_list / node_modules / jsdom / lib / jsdom / living / generated / MouseEventInit.js View on Github external
convertInherit(obj, ret, { context = "The provided value" } = {}) {
    EventModifierInit.convertInherit(obj, ret, { context });

    {
      const key = "button";
      let value = obj === undefined || obj === null ? undefined : obj[key];
      if (value !== undefined) {
        value = conversions["short"](value, { context: context + " has member button that" });

        ret[key] = value;
      } else {
        ret[key] = 0;
      }
    }

    {
      const key = "buttons";
      let value = obj === undefined || obj === null ? undefined : obj[key];
      if (value !== undefined) {
        value = conversions["unsigned short"](value, { context: context + " has member buttons that" });

        ret[key] = value;
      } else {
        ret[key] = 0;
github sx1989827 / DOClever / node_modules / jsdom / lib / jsdom / living / generated / MouseEvent.js View on Github external
}
  {
    let curArg = arguments[12];
    if (curArg !== undefined) {
      curArg = conversions["boolean"](curArg, {
        context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 13"
      });
    } else {
      curArg = 0;
    }
    args.push(curArg);
  }
  {
    let curArg = arguments[13];
    if (curArg !== undefined) {
      curArg = conversions["short"](curArg, {
        context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 14"
      });
    } else {
      curArg = 0;
    }
    args.push(curArg);
  }
  {
    let curArg = arguments[14];
    if (curArg !== undefined) {
      if (curArg === null || curArg === undefined) {
        curArg = null;
      } else {
        curArg = convertEventTarget(curArg, {
          context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 15"
        });
github flaviuse / mern-authentication / client / node_modules / jsdom / lib / jsdom / living / generated / MouseEvent.js View on Github external
}
  {
    let curArg = arguments[12];
    if (curArg !== undefined) {
      curArg = conversions["boolean"](curArg, {
        context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 13"
      });
    } else {
      curArg = 0;
    }
    args.push(curArg);
  }
  {
    let curArg = arguments[13];
    if (curArg !== undefined) {
      curArg = conversions["short"](curArg, {
        context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 14"
      });
    } else {
      curArg = 0;
    }
    args.push(curArg);
  }
  {
    let curArg = arguments[14];
    if (curArg !== undefined) {
      if (curArg === null || curArg === undefined) {
        curArg = null;
      } else {
        curArg = convertEventTarget(curArg, {
          context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 15"
        });
github sx1989827 / DOClever / Server / node_modules / jsdom / lib / jsdom / living / generated / MouseEvent.js View on Github external
context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 12"
    });
  } else {
    args[11] = 0;
  }

  if (args[12] !== undefined) {
    args[12] = conversions["boolean"](args[12], {
      context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 13"
    });
  } else {
    args[12] = 0;
  }

  if (args[13] !== undefined) {
    args[13] = conversions["short"](args[13], {
      context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 14"
    });
  } else {
    args[13] = 0;
  }

  if (args[14] !== undefined) {
    if (args[14] === null || args[14] === undefined) {
      args[14] = null;
    } else {
      args[14] = convertEventTarget(args[14], {
        context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 15"
      });
    }
  } else {
    args[14] = null;
github zubairghori / Ultimate_todo_list / node_modules / jsdom / lib / jsdom / living / generated / MouseEvent.js View on Github external
}
  {
    let curArg = arguments[12];
    if (curArg !== undefined) {
      curArg = conversions["boolean"](curArg, {
        context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 13"
      });
    } else {
      curArg = 0;
    }
    args.push(curArg);
  }
  {
    let curArg = arguments[13];
    if (curArg !== undefined) {
      curArg = conversions["short"](curArg, {
        context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 14"
      });
    } else {
      curArg = 0;
    }
    args.push(curArg);
  }
  {
    let curArg = arguments[14];
    if (curArg !== undefined) {
      if (curArg === null || curArg === undefined) {
        curArg = null;
      } else {
        curArg = convertEventTarget(curArg, {
          context: "Failed to execute 'initMouseEvent' on 'MouseEvent': parameter 15"
        });

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