Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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;
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;
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;
}
{
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"
});
}
{
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"
});
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;
}
{
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"
});