Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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;
},
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));
},
get tabIndex() {
if (!this.hasAttribute("tabindex")) {
return focusing.isFocusableAreaElement(this) ? 0 : -1;
}
return conversions.long(this.getAttribute("tabindex"));
}
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));
}
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));
};
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;
},
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;
}
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));
},
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);
};
} 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);
};