How to use the webidl-conversions.long 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 / node_modules / jsdom / lib / jsdom / living / generated / HTMLInputElement.js View on Github external
set(V) {
    if (!this || !module.exports.is(this)) {
      throw new TypeError("Illegal invocation");
    }

    V = conversions["long"](V, {
      context: "Failed to set the 'maxLength' property on 'HTMLInputElement': The provided value"
    });

    this[impl]["maxLength"] = V;
  },
github sx1989827 / DOClever / Server / node_modules / jsdom / lib / jsdom / living / generated / HTMLImageElement.js View on Github external
set(V) {
    if (!this || !module.exports.is(this)) {
      throw new TypeError("Illegal invocation");
    }

    V = conversions["long"](V, {
      context: "Failed to set the 'hspace' property on 'HTMLImageElement': The provided value"
    });

    this.setAttribute("hspace", String(V));
  },
github sx1989827 / DOClever / node_modules / jsdom / lib / jsdom / living / nodes / HTMLAndSVGElementShared-impl.js View on Github external
get tabIndex() {
    if (!this.hasAttribute("tabindex")) {
      return focusing.isFocusableAreaElement(this) ? 0 : -1;
    }
    return conversions.long(this.getAttribute("tabindex"));
  }
github gazooka / GhostInAzureWebApp / node_modules / jsdom / lib / jsdom / living / generated / HTMLTableRowElement.js View on Github external
insertCell() {
    if (!this || !module.exports.is(this)) {
      throw new TypeError("Illegal invocation");
    }
    const args = [];
    {
      let curArg = arguments[0];
      if (curArg !== undefined) {
        curArg = conversions["long"](curArg, {
          context: "Failed to execute 'insertCell' on 'HTMLTableRowElement': parameter 1"
        });
      } else {
        curArg = -1;
      }
      args.push(curArg);
    }
    return utils.tryWrapperForImpl(this[impl].insertCell(...args));
  }
github sx1989827 / DOClever / Server / node_modules / jsdom / lib / jsdom / living / generated / HTMLTableSectionElement.js View on Github external
HTMLTableSectionElement.prototype.insertRow = function insertRow() {
  if (!this || !module.exports.is(this)) {
    throw new TypeError("Illegal invocation");
  }

  const args = [];
  for (let i = 0; i < arguments.length && i < 1; ++i) {
    args[i] = arguments[i];
  }

  if (args[0] !== undefined) {
    args[0] = conversions["long"](args[0], {
      context: "Failed to execute 'insertRow' on 'HTMLTableSectionElement': parameter 1"
    });
  } else {
    args[0] = -1;
  }

  return utils.tryWrapperForImpl(this[impl].insertRow(...args));
};
github flaviuse / mern-authentication / client / node_modules / jsdom / lib / jsdom / living / generated / HTMLInputElement.js View on Github external
set(V) {
    if (!this || !module.exports.is(this)) {
      throw new TypeError("Illegal invocation");
    }

    V = conversions["long"](V, {
      context: "Failed to set the 'maxLength' property on 'HTMLInputElement': The provided value"
    });

    this[impl]["maxLength"] = V;
  },
github gazooka / GhostInAzureWebApp / node_modules / jsdom / lib / jsdom / living / generated / HTMLOListElement.js View on Github external
set start(V) {
    if (!this || !module.exports.is(this)) {
      throw new TypeError("Illegal invocation");
    }

    V = conversions["long"](V, {
      context: "Failed to set the 'start' property on 'HTMLOListElement': The provided value"
    });

    this[impl]["start"] = V;
  }
github zubairghori / Ultimate_todo_list / node_modules / jsdom / lib / jsdom / living / generated / HTMLOListElement.js View on Github external
set(V) {
    if (!this || !module.exports.is(this)) {
      throw new TypeError("Illegal invocation");
    }

    V = conversions["long"](V, {
      context: "Failed to set the 'start' property on 'HTMLOListElement': The provided value"
    });

    this.setAttribute("start", String(V));
  },
github flaviuse / mern-authentication / client / node_modules / jsdom / lib / jsdom / living / generated / HTMLTableElement.js View on Github external
HTMLTableElement.prototype.deleteRow = function deleteRow(index) {
  if (!this || !module.exports.is(this)) {
    throw new TypeError("Illegal invocation");
  }

  if (arguments.length < 1) {
    throw new TypeError(
      "Failed to execute 'deleteRow' on 'HTMLTableElement': 1 argument required, but only " +
        arguments.length +
        " present."
    );
  }
  const args = [];
  {
    let curArg = arguments[0];
    curArg = conversions["long"](curArg, {
      context: "Failed to execute 'deleteRow' on 'HTMLTableElement': parameter 1"
    });
    args.push(curArg);
  }
  return this[impl].deleteRow(...args);
};
github sx1989827 / DOClever / Server / node_modules / jsdom / lib / jsdom / living / generated / UIEvent.js View on Github external
} else {
    args[2] = false;
  }

  if (args[3] !== undefined) {
    if (args[3] === null || args[3] === undefined) {
      args[3] = null;
    } else {
      args[3] = utils.tryImplForWrapper(args[3]);
    }
  } else {
    args[3] = null;
  }

  if (args[4] !== undefined) {
    args[4] = conversions["long"](args[4], { context: "Failed to execute 'initUIEvent' on 'UIEvent': parameter 5" });
  } else {
    args[4] = 0;
  }

  return this[impl].initUIEvent(...args);
};

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