1
0
mirror of https://github.com/S2-/minifyfromhtml.git synced 2025-08-03 04:10:04 +02:00

update node modules

This commit is contained in:
s2
2021-05-07 15:56:33 +02:00
parent d81e8e9fb8
commit 3ec373077c
550 changed files with 84712 additions and 15991 deletions

12
node_modules/jsdom/lib/api.js generated vendored
View File

@@ -19,7 +19,7 @@ const NoOpResourceLoader = require("./jsdom/browser/resources/no-op-resource-loa
class CookieJar extends toughCookie.CookieJar {
constructor(store, options) {
// jsdom cookie jars must be loose by default
super(store, Object.assign({ looseMode: true }, options));
super(store, { looseMode: true, ...options });
}
}
@@ -27,7 +27,7 @@ const window = Symbol("window");
let sharedFragmentDocument = null;
class JSDOM {
constructor(input, options = {}) {
constructor(input = "", options = {}) {
const mimeType = new MIMEType(options.contentType === undefined ? "text/html" : options.contentType);
const { html, encoding } = normalizeHTML(input, mimeType);
@@ -163,7 +163,7 @@ function normalizeFromURLOptions(options) {
// Normalization of options which must be done before the rest of the fromURL code can use them, because they are
// given to request()
const normalized = Object.assign({}, options);
const normalized = { ...options };
if (options.referrer !== undefined) {
normalized.referrer = (new URL(options.referrer)).href;
@@ -180,7 +180,7 @@ function normalizeFromURLOptions(options) {
}
function normalizeFromFileOptions(filename, options) {
const normalized = Object.assign({}, options);
const normalized = { ...options };
if (normalized.contentType === undefined) {
const extname = path.extname(filename);
@@ -282,12 +282,10 @@ function transformOptions(options, encoding, mimeType) {
transformed.windowOptions.storageQuota = Number(options.storageQuota);
}
// concurrentNodeIterators??
return transformed;
}
function normalizeHTML(html = "", mimeType) {
function normalizeHTML(html, mimeType) {
let encoding = "UTF-8";
if (ArrayBuffer.isView(html)) {

View File

@@ -8,6 +8,9 @@ const { installInterfaces } = require("../living/interfaces");
const { define, mixin } = require("../utils");
const Element = require("../living/generated/Element");
const EventTarget = require("../living/generated/EventTarget");
const EventHandlerNonNull = require("../living/generated/EventHandlerNonNull");
const OnBeforeUnloadEventHandlerNonNull = require("../living/generated/OnBeforeUnloadEventHandlerNonNull");
const OnErrorEventHandlerNonNull = require("../living/generated/OnErrorEventHandlerNonNull");
const PageTransitionEvent = require("../living/generated/PageTransitionEvent");
const namedPropertiesWindow = require("../living/named-properties-window");
const postMessage = require("../living/post-message");
@@ -24,22 +27,79 @@ const Screen = require("../living/generated/Screen");
const Storage = require("../living/generated/Storage");
const Selection = require("../living/generated/Selection");
const reportException = require("../living/helpers/runtime-script-errors");
const { getCurrentEventHandlerValue } = require("../living/helpers/create-event-accessor.js");
const { fireAnEvent } = require("../living/helpers/events");
const SessionHistory = require("../living/window/SessionHistory");
const { forEachMatchingSheetRuleOfElement, getResolvedValue, propertiesWithResolvedValueImplemented } =
require("../living/helpers/style-rules");
const { forEachMatchingSheetRuleOfElement, getResolvedValue, propertiesWithResolvedValueImplemented,
SHADOW_DOM_PSEUDO_REGEXP } = require("../living/helpers/style-rules.js");
const CustomElementRegistry = require("../living/generated/CustomElementRegistry");
const jsGlobals = require("./js-globals.json");
const GlobalEventHandlersImpl = require("../living/nodes/GlobalEventHandlers-impl").implementation;
const WindowEventHandlersImpl = require("../living/nodes/WindowEventHandlers-impl").implementation;
const events = new Set([
// GlobalEventHandlers
"abort", "autocomplete",
"autocompleteerror", "blur",
"cancel", "canplay", "canplaythrough",
"change", "click",
"close", "contextmenu",
"cuechange", "dblclick",
"drag", "dragend",
"dragenter",
"dragleave", "dragover",
"dragstart", "drop",
"durationchange", "emptied",
"ended", "focus",
"input", "invalid",
"keydown", "keypress",
"keyup", "load", "loadeddata",
"loadedmetadata", "loadstart",
"mousedown", "mouseenter",
"mouseleave", "mousemove",
"mouseout", "mouseover",
"mouseup", "wheel",
"pause", "play",
"playing", "progress",
"ratechange", "reset",
"resize", "scroll",
"securitypolicyviolation",
"seeked", "seeking",
"select", "sort", "stalled",
"submit", "suspend",
"timeupdate", "toggle",
"volumechange", "waiting",
// WindowEventHandlers
"afterprint",
"beforeprint",
"hashchange",
"languagechange",
"message",
"messageerror",
"offline",
"online",
"pagehide",
"pageshow",
"popstate",
"rejectionhandled",
"storage",
"unhandledrejection",
"unload"
// "error" and "beforeunload" are added separately
]);
exports.createWindow = function (options) {
return new Window(options);
};
const jsGlobalEntriesToInstall = Object.entries(jsGlobals).filter(([name]) => name in global);
// TODO remove when we drop Node v10 support.
const anyNodeVersionQueueMicrotask = typeof queueMicrotask === "function" ? queueMicrotask : process.nextTick;
// https://html.spec.whatwg.org/#the-window-object
function setupWindow(windowInstance, { runScripts }) {
if (runScripts === "outside-only" || runScripts === "dangerously") {
@@ -97,6 +157,62 @@ function setupWindow(windowInstance, { runScripts }) {
mixin(windowInstance, GlobalEventHandlersImpl.prototype);
windowInstance._initGlobalEvents();
Object.defineProperty(windowInstance, "onbeforeunload", {
configurable: true,
enumerable: true,
get() {
return idlUtils.tryWrapperForImpl(getCurrentEventHandlerValue(this, "beforeunload"));
},
set(V) {
if (!idlUtils.isObject(V)) {
V = null;
} else {
V = OnBeforeUnloadEventHandlerNonNull.convert(V, {
context: "Failed to set the 'onbeforeunload' property on 'Window': The provided value"
});
}
this._setEventHandlerFor("beforeunload", V);
}
});
Object.defineProperty(windowInstance, "onerror", {
configurable: true,
enumerable: true,
get() {
return idlUtils.tryWrapperForImpl(getCurrentEventHandlerValue(this, "error"));
},
set(V) {
if (!idlUtils.isObject(V)) {
V = null;
} else {
V = OnErrorEventHandlerNonNull.convert(V, {
context: "Failed to set the 'onerror' property on 'Window': The provided value"
});
}
this._setEventHandlerFor("error", V);
}
});
for (const event of events) {
Object.defineProperty(windowInstance, `on${event}`, {
configurable: true,
enumerable: true,
get() {
return idlUtils.tryWrapperForImpl(getCurrentEventHandlerValue(this, event));
},
set(V) {
if (!idlUtils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: `Failed to set the 'on${event}' property on 'Window': The provided value`
});
}
this._setEventHandlerFor(event, V);
}
});
}
windowInstance._globalObject = windowInstance;
}
@@ -111,7 +227,7 @@ function Window(options) {
const window = this;
///// PRIVATE DATA PROPERTIES
// ### PRIVATE DATA PROPERTIES
this._resourceLoader = options.resourceLoader;
@@ -128,10 +244,10 @@ function Window(options) {
url: options.url,
lastModified: options.lastModified,
referrer: options.referrer,
concurrentNodeIterators: options.concurrentNodeIterators,
parseOptions: options.parseOptions,
defaultView: this._globalProxy,
global: this
global: this,
parentOrigin: options.parentOrigin
}, { alwaysUseDocumentClass: true });
if (vm.isContext(window)) {
@@ -163,6 +279,9 @@ function Window(options) {
// HTMLFrameElement implementation.
this._length = 0;
// https://dom.spec.whatwg.org/#window-current-event
this._currentEvent = undefined;
this._pretendToBeVisual = options.pretendToBeVisual;
this._storageQuota = options.storageQuota;
@@ -183,7 +302,7 @@ function Window(options) {
this._currentOriginData = this._commonForOrigin[documentOrigin];
///// WEB STORAGE
// ### WEB STORAGE
this._localStorage = Storage.create(window, [], {
associatedWindow: this,
@@ -200,7 +319,7 @@ function Window(options) {
storageQuota: this._storageQuota
});
///// SELECTION
// ### SELECTION
// https://w3c.github.io/selection-api/#dfn-selection
this._selection = Selection.createImpl(window);
@@ -210,7 +329,7 @@ function Window(options) {
return window._selection;
};
///// GETTERS
// ### GETTERS
const locationbar = BarProp.create(window);
const menubar = BarProp.create(window);
@@ -319,12 +438,18 @@ function Window(options) {
},
get customElements() {
return customElementRegistry;
},
get event() {
return window._currentEvent ? idlUtils.wrapperForImpl(window._currentEvent) : undefined;
},
set event(value) {
Object.defineProperty(window, "event", { configurable: true, enumerable: true, writable: true, value });
}
});
namedPropertiesWindow.initializeWindow(this, this._globalProxy);
///// METHODS
// ### METHODS
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers
@@ -415,6 +540,20 @@ function Window(options) {
return handle;
}
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#microtask-queuing
this.queueMicrotask = function (callback) {
callback = webIDLConversions.Function(callback);
anyNodeVersionQueueMicrotask(() => {
try {
callback();
} catch (e) {
reportException(window, e, window.location.href);
}
});
};
// https://html.spec.whatwg.org/multipage/imagebitmap-and-animations.html#animation-frames
let animationFrameCallbackId = 0;
@@ -528,15 +667,15 @@ function Window(options) {
writable: true
});
function Image() {
function Image(...args) {
const img = window._document.createElement("img");
const impl = idlUtils.implForWrapper(img);
if (arguments.length > 0) {
impl.setAttributeNS(null, "width", String(arguments[0]));
if (args.length > 0) {
impl.setAttributeNS(null, "width", String(args[0]));
}
if (arguments.length > 1) {
impl.setAttributeNS(null, "height", String(arguments[1]));
if (args.length > 1) {
impl.setAttributeNS(null, "height", String(args[1]));
}
return img;
@@ -640,8 +779,21 @@ function Window(options) {
WebSocketImpl.cleanUpWindow(this);
};
this.getComputedStyle = function (elt) {
this.getComputedStyle = function (elt, pseudoElt = undefined) {
elt = Element.convert(elt);
if (pseudoElt !== undefined && pseudoElt !== null) {
pseudoElt = webIDLConversions.DOMString(pseudoElt);
}
if (pseudoElt !== undefined && pseudoElt !== null && pseudoElt !== "") {
// TODO: Parse pseudoElt
if (SHADOW_DOM_PSEUDO_REGEXP.test(pseudoElt)) {
throw new TypeError("Tried to get the computed style of a Shadow DOM pseudo-element.");
}
notImplemented("window.computedStyle(elt, pseudoElt)", this);
}
const declaration = new CSSStyleDeclaration();
const { forEach } = Array.prototype;
@@ -679,7 +831,7 @@ function Window(options) {
this.releaseEvents = function () {};
///// PUBLIC DATA PROPERTIES (TODO: should be getters)
// ### PUBLIC DATA PROPERTIES (TODO: should be getters)
function wrapConsoleMethod(method) {
return (...args) => {
@@ -748,22 +900,24 @@ function Window(options) {
scrollTo: notImplementedMethod("window.scrollTo")
});
///// INITIALIZATION
// ### INITIALIZATION
process.nextTick(() => {
if (!window.document) {
return; // window might've been closed already
}
const documentImpl = idlUtils.implForWrapper(window._document);
if (window.document.readyState === "complete") {
fireAnEvent("load", window, undefined, {}, window.document);
fireAnEvent("load", window, undefined, {}, documentImpl);
} else {
window.document.addEventListener("load", () => {
fireAnEvent("load", window, undefined, {}, window.document);
fireAnEvent("load", window, undefined, {}, documentImpl);
if (!idlUtils.implForWrapper(window._document)._pageShowingFlag) {
idlUtils.implForWrapper(window._document)._pageShowingFlag = true;
fireAnEvent("pageshow", window, PageTransitionEvent, { persisted: false }, window.document);
if (!documentImpl._pageShowingFlag) {
documentImpl._pageShowingFlag = true;
fireAnEvent("pageshow", window, PageTransitionEvent, { persisted: false }, documentImpl);
}
});
}

View File

@@ -780,6 +780,10 @@ dialog {
color: black
}
[hidden] {
display: none
}
/* noscript is handled internally, as it depends on settings. */
`;

View File

@@ -284,6 +284,21 @@
"enumerable": false,
"configurable": true
},
"AggregateError": {
"writable": true,
"enumerable": false,
"configurable": true
},
"FinalizationRegistry": {
"writable": true,
"enumerable": false,
"configurable": true
},
"WeakRef": {
"writable": true,
"enumerable": false,
"configurable": true
},
"WebAssembly": {
"writable": true,
"enumerable": false,

View File

@@ -3,6 +3,7 @@
const parse5 = require("parse5");
const { createElement } = require("../../living/helpers/create-element");
const { HTML_NS } = require("../../living/helpers/namespaces");
const DocumentType = require("../../living/generated/DocumentType");
const DocumentFragment = require("../../living/generated/DocumentFragment");
@@ -60,7 +61,7 @@ class JSDOMParse5Adapter {
// The _currentElement is undefined when parsing elements at the root of the document.
if (_currentElement) {
return _currentElement.localName === "template" ?
return _currentElement.localName === "template" && _currentElement.namespaceURI === HTML_NS ?
_currentElement.content._ownerDocument :
_currentElement._ownerDocument;
}
@@ -195,23 +196,23 @@ class JSDOMParse5Adapter {
Object.assign(JSDOMParse5Adapter.prototype, serializationAdapter);
function parseFragment(markup, contextElement) {
const ownerDocument = contextElement.localName === "template" ?
const ownerDocument = contextElement.localName === "template" && contextElement.namespaceURI === HTML_NS ?
contextElement.content._ownerDocument :
contextElement._ownerDocument;
const config = Object.assign({}, ownerDocument._parseOptions, {
treeAdapter: new JSDOMParse5Adapter(ownerDocument, {
fragment: true
})
});
const config = {
...ownerDocument._parseOptions,
treeAdapter: new JSDOMParse5Adapter(ownerDocument, { fragment: true })
};
return parse5.parseFragment(contextElement, markup, config);
}
function parseIntoDocument(markup, ownerDocument) {
const config = Object.assign({}, ownerDocument._parseOptions, {
const config = {
...ownerDocument._parseOptions,
treeAdapter: new JSDOMParse5Adapter(ownerDocument)
});
};
return parse5.parse(markup, config);
}

View File

@@ -118,10 +118,7 @@ function createParser(rootNode, globalObject, saxesOptions) {
for (const key of Object.keys(tagAttributes)) {
const { prefix, local, uri, value } = tagAttributes[key];
attributes.setAttributeValue(
elem, local, value, prefix === "" ? null : prefix,
uri === "" ? null : uri
);
attributes.setAttributeValue(elem, local, value, prefix === "" ? null : prefix, uri === "" ? null : uri);
}
appendChild(elem);

View File

@@ -1,5 +1,6 @@
"use strict";
const fs = require("fs");
const { fileURLToPath } = require("url");
const { parseURL } = require("whatwg-url");
const dataURLFromRecord = require("data-urls").fromURLRecord;
const request = require("request-promise-native");
@@ -34,14 +35,11 @@ module.exports = class ResourceLoader {
}
_readFile(filePath) {
let readableStream;
let abort; // Native Promises doesn't have an "abort" method.
let readableStream, abort; // Native Promises doesn't have an "abort" method.
/*
* Creating a promise for two reason:
* 1. fetch always return a promise.
* 2. We need to add an abort handler.
*/
// Creating a promise for two reason:
// 1. fetch always return a promise.
// 2. We need to add an abort handler.
const promise = new Promise((resolve, reject) => {
readableStream = fs.createReadStream(filePath);
let data = Buffer.alloc(0);
@@ -80,7 +78,7 @@ module.exports = class ResourceLoader {
headers: {
"User-Agent": this._userAgent,
"Accept-Language": "en",
Accept: accept
"Accept": accept
}
};
@@ -110,13 +108,11 @@ module.exports = class ResourceLoader {
}
case "file": {
// TODO: Improve the URL => file algorithm. See https://github.com/jsdom/jsdom/pull/2279#discussion_r199977987
const filePath = urlString
.replace(/^file:\/\//, "")
.replace(/^\/([a-z]):\//i, "$1:/")
.replace(/%20/g, " ");
return this._readFile(filePath);
try {
return this._readFile(fileURLToPath(urlString));
} catch (e) {
return Promise.reject(e);
}
}
default: {

View File

@@ -53,7 +53,7 @@ module.exports = class ResourceQueue {
return onLoad();
}
request = new Promise(resolve => resolve());
request = Promise.resolve();
}
const q = this;
const item = {

View File

@@ -11,6 +11,7 @@ const { shadowIncludingInclusiveDescendantsIterator } = require("../helpers/shad
const { isValidCustomElementName, tryUpgradeElement, enqueueCEUpgradeReaction } = require("../helpers/custom-elements");
const idlUtils = require("../generated/utils");
const IDLFunction = require("../generated/Function.js");
const HTMLUnknownElement = require("../generated/HTMLUnknownElement");
const LIFECYCLE_CALLBACKS = [
@@ -62,8 +63,9 @@ class CustomElementRegistryImpl {
}
// https://html.spec.whatwg.org/#dom-customelementregistry-define
define(name, ctor, options) {
define(name, constructor, options) {
const { _globalObject } = this;
const ctor = constructor.objectReference;
if (!isConstructor(ctor)) {
throw new TypeError("Constructor argument is not a constructor.");
@@ -81,7 +83,7 @@ class CustomElementRegistryImpl {
]);
}
const ctorAlreadyRegistered = this._customElementDefinitions.some(entry => entry.ctor === ctor);
const ctorAlreadyRegistered = this._customElementDefinitions.some(entry => entry.objectReference === ctor);
if (ctorAlreadyRegistered) {
throw DOMException.create(_globalObject, [
"This constructor has already been registered in the registry.",
@@ -145,7 +147,9 @@ class CustomElementRegistryImpl {
const callbackValue = prototype[callbackName];
if (callbackValue !== undefined) {
lifecycleCallbacks[callbackName] = webIDLConversions.Function(callbackValue);
lifecycleCallbacks[callbackName] = IDLFunction.convert(callbackValue, {
context: `The lifecycle callback "${callbackName}"`
});
}
}
@@ -177,7 +181,8 @@ class CustomElementRegistryImpl {
const definition = {
name,
localName,
ctor,
constructor,
objectReference: ctor,
observedAttributes,
lifecycleCallbacks,
disableShadow,
@@ -203,7 +208,7 @@ class CustomElementRegistryImpl {
}
if (this._whenDefinedPromiseMap[name] !== undefined) {
this._whenDefinedPromiseMap[name].resolve(undefined);
this._whenDefinedPromiseMap[name].resolve(ctor);
delete this._whenDefinedPromiseMap[name];
}
}
@@ -211,7 +216,7 @@ class CustomElementRegistryImpl {
// https://html.spec.whatwg.org/#dom-customelementregistry-get
get(name) {
const definition = this._customElementDefinitions.find(entry => entry.name === name);
return definition && definition.ctor;
return definition && definition.objectReference;
}
// https://html.spec.whatwg.org/#dom-customelementregistry-whendefined
@@ -223,9 +228,9 @@ class CustomElementRegistryImpl {
));
}
const alreadyRegistered = this._customElementDefinitions.some(entry => entry.name === name);
const alreadyRegistered = this._customElementDefinitions.find(entry => entry.name === name);
if (alreadyRegistered) {
return Promise.resolve();
return Promise.resolve(alreadyRegistered.objectReference);
}
if (this._whenDefinedPromiseMap[name] === undefined) {

View File

@@ -0,0 +1,29 @@
"use strict";
const { parseFragment } = require("../../browser/parser");
const { HTML_NS } = require("../helpers/namespaces.js");
const { isShadowRoot } = require("../helpers/shadow-dom.js");
const NODE_TYPE = require("../node-type.js");
const { fragmentSerialization } = require("./serialization.js");
// https://w3c.github.io/DOM-Parsing/#the-innerhtml-mixin
exports.implementation = class InnerHTMLImpl {
// https://w3c.github.io/DOM-Parsing/#dom-innerhtml-innerhtml
get innerHTML() {
return fragmentSerialization(this, {
requireWellFormed: true,
globalObject: this._globalObject
});
}
set innerHTML(markup) {
const contextElement = isShadowRoot(this) ? this.host : this;
const fragment = parseFragment(markup, contextElement);
let contextObject = this;
if (this.nodeType === NODE_TYPE.ELEMENT_NODE && this.localName === "template" && this.namespaceURI === HTML_NS) {
contextObject = this._templateContents;
}
contextObject._replaceAll(fragment);
}
};

View File

@@ -57,3 +57,7 @@ exports.setNodeSourceCodeLocation = (node, location) => {
};
exports.getNodeSourceCodeLocation = node => node.sourceCodeLocation;
exports.updateNodeSourceCodeLocation = (node, endLocation) => {
Object.assign(node.sourceCodeLocation, endLocation);
};

View File

@@ -271,11 +271,11 @@ function invokeEventListeners(struct, eventImpl, phase) {
eventImpl.currentTarget = idlUtils.wrapperForImpl(struct.item);
const listeners = struct.item._eventListeners;
innerInvokeEventListeners(eventImpl, listeners, phase, struct);
innerInvokeEventListeners(eventImpl, listeners, phase, struct.itemInShadowTree);
}
// https://dom.spec.whatwg.org/#concept-event-listener-inner-invoke
function innerInvokeEventListeners(eventImpl, listeners, phase) {
function innerInvokeEventListeners(eventImpl, listeners, phase, itemInShadowTree) {
let found = false;
const { type, target } = eventImpl;
@@ -310,6 +310,26 @@ function innerInvokeEventListeners(eventImpl, listeners, phase) {
listeners[type].splice(listeners[type].indexOf(listener), 1);
}
let window = null;
if (wrapper && wrapper._document) {
// Triggered by Window
window = wrapper;
} else if (target._ownerDocument) {
// Triggered by most webidl2js'ed instances
window = target._ownerDocument._defaultView;
} else if (wrapper._ownerDocument) {
// Currently triggered by some non-webidl2js things
window = wrapper._ownerDocument._defaultView;
}
let currentEvent;
if (window) {
currentEvent = window._currentEvent;
if (!itemInShadowTree) {
window._currentEvent = eventImpl;
}
}
if (passive) {
eventImpl._inPassiveListenerFlag = true;
}
@@ -317,18 +337,6 @@ function innerInvokeEventListeners(eventImpl, listeners, phase) {
try {
listener.callback.call(eventImpl.currentTarget, eventImpl);
} catch (e) {
let window = null;
if (wrapper && wrapper._document) {
// Triggered by Window
window = wrapper;
} else if (target._ownerDocument) {
// Triggered by most webidl2js'ed instances
window = target._ownerDocument._defaultView;
} else if (wrapper._ownerDocument) {
// Currently triggered by some non-webidl2js things
window = wrapper._ownerDocument._defaultView;
}
if (window) {
reportException(window, e);
}
@@ -337,6 +345,10 @@ function innerInvokeEventListeners(eventImpl, listeners, phase) {
eventImpl._inPassiveListenerFlag = false;
if (window) {
window._currentEvent = currentEvent;
}
if (eventImpl._stopImmediatePropagationFlag) {
return found;
}

View File

@@ -1,21 +1,9 @@
"use strict";
const UIEventImpl = require("./UIEvent-impl").implementation;
const InputEventInit = require("../generated/InputEventInit");
// https://w3c.github.io/uievents/#interface-inputevent
class InputEventImpl extends UIEventImpl {
initInputEvent(type, bubbles, cancelable, data, isComposing) {
if (this._dispatchFlag) {
return;
}
this.initUIEvent(type, bubbles, cancelable);
this.data = data;
this.isComposing = isComposing;
}
}
class InputEventImpl extends UIEventImpl { }
InputEventImpl.defaultInit = InputEventInit.convert(undefined);
module.exports = {

View File

@@ -8,8 +8,21 @@ const MouseEventInit = require("../generated/MouseEventInit");
class MouseEventImpl extends UIEventImpl {
initMouseEvent(
type, bubbles, cancelable, view, detail, screenX, screenY, clientX, clientY,
ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget
type,
bubbles,
cancelable,
view,
detail,
screenX,
screenY,
clientX,
clientY,
ctrlKey,
altKey,
shiftKey,
metaKey,
button,
relatedTarget
) {
if (this._dispatchFlag) {
return;

View File

@@ -53,9 +53,7 @@ exports.implementation = class BlobImpl {
slice(start, end, contentType) {
const { size } = this;
let relativeStart;
let relativeEnd;
let relativeContentType;
let relativeStart, relativeEnd, relativeContentType;
if (start === undefined) {
relativeStart = 0;

View File

@@ -3,13 +3,10 @@
const BlobImpl = require("./Blob-impl").implementation;
exports.implementation = class FileImpl extends BlobImpl {
constructor(globalObject, args, privateData) {
const fileBits = args[0];
const fileName = args[1];
const options = args[2];
constructor(globalObject, [fileBits, fileName, options], privateData) {
super(globalObject, [fileBits, options], privateData);
this.name = fileName.replace(/\//g, ":");
this.name = fileName;
this.lastModified = "lastModified" in options ? options.lastModified : Date.now();
}
};

View File

@@ -98,11 +98,6 @@ class FileReaderImpl extends EventTargetImpl {
}
switch (format) {
default:
case "buffer": {
this.result = copyToArrayBufferInNewRealm(data, this._globalObject);
break;
}
case "binaryString": {
this.result = data.toString("binary");
break;
@@ -117,6 +112,11 @@ class FileReaderImpl extends EventTargetImpl {
this.result = whatwgEncoding.decode(data, encoding);
break;
}
case "buffer":
default: {
this.result = copyToArrayBufferInNewRealm(data, this._globalObject);
break;
}
}
this.readyState = READY_STATES.DONE;
this._fireProgressEvent("load");

View File

@@ -92,7 +92,7 @@ exports.install = (globalObject, globalNames) => {
abort() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'abort' called on an object that is not a valid instance of AbortController.");
}
return esValue[implSymbol].abort();
@@ -102,7 +102,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get signal' called on an object that is not a valid instance of AbortController.");
}
return utils.getSameObject(this, "signal", () => {

View File

@@ -3,6 +3,7 @@
const conversions = require("webidl-conversions");
const utils = require("./utils.js");
const EventHandlerNonNull = require("./EventHandlerNonNull.js");
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const EventTarget = require("./EventTarget.js");
@@ -100,7 +101,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get aborted' called on an object that is not a valid instance of AbortSignal.");
}
return esValue[implSymbol]["aborted"];
@@ -110,7 +111,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get onabort' called on an object that is not a valid instance of AbortSignal.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onabort"]);
@@ -120,11 +121,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set onabort' called on an object that is not a valid instance of AbortSignal.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onabort' property on 'AbortSignal': The provided value"
});
}
esValue[implSymbol]["onabort"] = V;
}
}

View File

@@ -93,7 +93,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get startContainer' called on an object that is not a valid instance of AbstractRange.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["startContainer"]);
@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get startOffset' called on an object that is not a valid instance of AbstractRange.");
}
return esValue[implSymbol]["startOffset"];
@@ -113,7 +113,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get endContainer' called on an object that is not a valid instance of AbstractRange.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["endContainer"]);
@@ -123,7 +123,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get endOffset' called on an object that is not a valid instance of AbstractRange.");
}
return esValue[implSymbol]["endOffset"];
@@ -133,7 +133,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get collapsed' called on an object that is not a valid instance of AbstractRange.");
}
return esValue[implSymbol]["collapsed"];

View File

@@ -102,7 +102,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get namespaceURI' called on an object that is not a valid instance of Attr.");
}
return esValue[implSymbol]["namespaceURI"];
@@ -112,7 +112,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get prefix' called on an object that is not a valid instance of Attr.");
}
return esValue[implSymbol]["prefix"];
@@ -122,7 +122,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get localName' called on an object that is not a valid instance of Attr.");
}
return esValue[implSymbol]["localName"];
@@ -132,7 +132,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get name' called on an object that is not a valid instance of Attr.");
}
return esValue[implSymbol]["name"];
@@ -142,7 +142,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get value' called on an object that is not a valid instance of Attr.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -157,7 +157,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set value' called on an object that is not a valid instance of Attr.");
}
V = conversions["DOMString"](V, { context: "Failed to set the 'value' property on 'Attr': The provided value" });
@@ -174,7 +174,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get ownerElement' called on an object that is not a valid instance of Attr.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["ownerElement"]);
@@ -184,7 +184,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get specified' called on an object that is not a valid instance of Attr.");
}
return esValue[implSymbol]["specified"];

View File

@@ -93,7 +93,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get visible' called on an object that is not a valid instance of BarProp.");
}
return esValue[implSymbol]["visible"];

View File

@@ -124,7 +124,7 @@ exports.install = (globalObject, globalNames) => {
slice() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'slice' called on an object that is not a valid instance of Blob.");
}
const args = [];
{
@@ -161,7 +161,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get size' called on an object that is not a valid instance of Blob.");
}
return esValue[implSymbol]["size"];
@@ -171,7 +171,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get type' called on an object that is not a valid instance of Blob.");
}
return esValue[implSymbol]["type"];

View File

@@ -0,0 +1,34 @@
"use strict";
const conversions = require("webidl-conversions");
const utils = require("./utils.js");
exports.convert = (value, { context = "The provided value" } = {}) => {
if (typeof value !== "function") {
throw new TypeError(context + " is not a function");
}
function invokeTheCallbackFunction(blob) {
if (new.target !== undefined) {
throw new Error("Internal error: invokeTheCallbackFunction is not a constructor");
}
const thisArg = utils.tryWrapperForImpl(this);
let callResult;
blob = utils.tryWrapperForImpl(blob);
callResult = Reflect.apply(value, thisArg, [blob]);
}
invokeTheCallbackFunction.construct = blob => {
blob = utils.tryWrapperForImpl(blob);
let callResult = Reflect.construct(value, [blob]);
};
invokeTheCallbackFunction[utils.wrapperSymbol] = value;
invokeTheCallbackFunction.objectReference = value;
return invokeTheCallbackFunction;
};

View File

@@ -101,7 +101,7 @@ exports.install = (globalObject, globalNames) => {
substringData(offset, count) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'substringData' called on an object that is not a valid instance of CharacterData.");
}
if (arguments.length < 2) {
@@ -132,7 +132,7 @@ exports.install = (globalObject, globalNames) => {
appendData(data) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'appendData' called on an object that is not a valid instance of CharacterData.");
}
if (arguments.length < 1) {
@@ -156,7 +156,7 @@ exports.install = (globalObject, globalNames) => {
insertData(offset, data) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'insertData' called on an object that is not a valid instance of CharacterData.");
}
if (arguments.length < 2) {
@@ -187,7 +187,7 @@ exports.install = (globalObject, globalNames) => {
deleteData(offset, count) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'deleteData' called on an object that is not a valid instance of CharacterData.");
}
if (arguments.length < 2) {
@@ -218,7 +218,7 @@ exports.install = (globalObject, globalNames) => {
replaceData(offset, count, data) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'replaceData' called on an object that is not a valid instance of CharacterData.");
}
if (arguments.length < 3) {
@@ -256,7 +256,7 @@ exports.install = (globalObject, globalNames) => {
before() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'before' called on an object that is not a valid instance of CharacterData.");
}
const args = [];
for (let i = 0; i < arguments.length; i++) {
@@ -281,7 +281,7 @@ exports.install = (globalObject, globalNames) => {
after() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'after' called on an object that is not a valid instance of CharacterData.");
}
const args = [];
for (let i = 0; i < arguments.length; i++) {
@@ -306,7 +306,7 @@ exports.install = (globalObject, globalNames) => {
replaceWith() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'replaceWith' called on an object that is not a valid instance of CharacterData.");
}
const args = [];
for (let i = 0; i < arguments.length; i++) {
@@ -331,7 +331,7 @@ exports.install = (globalObject, globalNames) => {
remove() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'remove' called on an object that is not a valid instance of CharacterData.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -346,7 +346,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get data' called on an object that is not a valid instance of CharacterData.");
}
return esValue[implSymbol]["data"];
@@ -356,7 +356,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set data' called on an object that is not a valid instance of CharacterData.");
}
V = conversions["DOMString"](V, {
@@ -371,7 +371,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get length' called on an object that is not a valid instance of CharacterData.");
}
return esValue[implSymbol]["length"];
@@ -381,7 +381,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get previousElementSibling' called on an object that is not a valid instance of CharacterData."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["previousElementSibling"]);
@@ -391,7 +393,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get nextElementSibling' called on an object that is not a valid instance of CharacterData."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["nextElementSibling"]);

View File

@@ -117,7 +117,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get wasClean' called on an object that is not a valid instance of CloseEvent.");
}
return esValue[implSymbol]["wasClean"];
@@ -127,7 +127,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get code' called on an object that is not a valid instance of CloseEvent.");
}
return esValue[implSymbol]["code"];
@@ -137,7 +137,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get reason' called on an object that is not a valid instance of CloseEvent.");
}
return esValue[implSymbol]["reason"];

View File

@@ -118,7 +118,9 @@ exports.install = (globalObject, globalNames) => {
initCompositionEvent(typeArg) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'initCompositionEvent' called on an object that is not a valid instance of CompositionEvent."
);
}
if (arguments.length < 1) {
@@ -189,7 +191,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get data' called on an object that is not a valid instance of CompositionEvent.");
}
return esValue[implSymbol]["data"];

View File

@@ -0,0 +1,38 @@
"use strict";
const conversions = require("webidl-conversions");
const utils = require("./utils.js");
exports.convert = (value, { context = "The provided value" } = {}) => {
if (typeof value !== "function") {
throw new TypeError(context + " is not a function");
}
function invokeTheCallbackFunction() {
if (new.target !== undefined) {
throw new Error("Internal error: invokeTheCallbackFunction is not a constructor");
}
const thisArg = utils.tryWrapperForImpl(this);
let callResult;
callResult = Reflect.apply(value, thisArg, []);
callResult = conversions["any"](callResult, { context: context });
return callResult;
}
invokeTheCallbackFunction.construct = () => {
let callResult = Reflect.construct(value, []);
callResult = conversions["any"](callResult, { context: context });
return callResult;
};
invokeTheCallbackFunction[utils.wrapperSymbol] = value;
invokeTheCallbackFunction.objectReference = value;
return invokeTheCallbackFunction;
};

View File

@@ -3,6 +3,7 @@
const conversions = require("webidl-conversions");
const utils = require("./utils.js");
const CustomElementConstructor = require("./CustomElementConstructor.js");
const ElementDefinitionOptions = require("./ElementDefinitionOptions.js");
const ceReactionsPreSteps_helpers_custom_elements = require("../helpers/custom-elements.js").ceReactionsPreSteps;
const ceReactionsPostSteps_helpers_custom_elements = require("../helpers/custom-elements.js").ceReactionsPostSteps;
@@ -96,7 +97,7 @@ exports.install = (globalObject, globalNames) => {
define(name, constructor) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'define' called on an object that is not a valid instance of CustomElementRegistry.");
}
if (arguments.length < 2) {
@@ -116,7 +117,9 @@ exports.install = (globalObject, globalNames) => {
}
{
let curArg = arguments[1];
curArg = utils.tryImplForWrapper(curArg);
curArg = CustomElementConstructor.convert(curArg, {
context: "Failed to execute 'define' on 'CustomElementRegistry': parameter 2"
});
args.push(curArg);
}
{
@@ -137,7 +140,7 @@ exports.install = (globalObject, globalNames) => {
get(name) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get' called on an object that is not a valid instance of CustomElementRegistry.");
}
if (arguments.length < 1) {
@@ -162,7 +165,9 @@ exports.install = (globalObject, globalNames) => {
try {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'whenDefined' called on an object that is not a valid instance of CustomElementRegistry."
);
}
if (arguments.length < 1) {
@@ -189,7 +194,7 @@ exports.install = (globalObject, globalNames) => {
upgrade(root) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'upgrade' called on an object that is not a valid instance of CustomElementRegistry.");
}
if (arguments.length < 1) {

View File

@@ -116,7 +116,7 @@ exports.install = (globalObject, globalNames) => {
initCustomEvent(type) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'initCustomEvent' called on an object that is not a valid instance of CustomEvent.");
}
if (arguments.length < 1) {
@@ -174,7 +174,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get detail' called on an object that is not a valid instance of CustomEvent.");
}
return esValue[implSymbol]["detail"];

View File

@@ -93,7 +93,9 @@ exports.install = (globalObject, globalNames) => {
createDocumentType(qualifiedName, publicId, systemId) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'createDocumentType' called on an object that is not a valid instance of DOMImplementation."
);
}
if (arguments.length < 3) {
@@ -131,7 +133,7 @@ exports.install = (globalObject, globalNames) => {
createDocument(namespace, qualifiedName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'createDocument' called on an object that is not a valid instance of DOMImplementation.");
}
if (arguments.length < 2) {
@@ -182,7 +184,9 @@ exports.install = (globalObject, globalNames) => {
createHTMLDocument() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'createHTMLDocument' called on an object that is not a valid instance of DOMImplementation."
);
}
const args = [];
{
@@ -200,7 +204,7 @@ exports.install = (globalObject, globalNames) => {
hasFeature() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'hasFeature' called on an object that is not a valid instance of DOMImplementation.");
}
return esValue[implSymbol].hasFeature();

View File

@@ -93,7 +93,7 @@ exports.install = (globalObject, globalNames) => {
parseFromString(str, type) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'parseFromString' called on an object that is not a valid instance of DOMParser.");
}
if (arguments.length < 2) {

View File

@@ -201,10 +201,12 @@ class ProxyHandler {
if (typeof P === "symbol") {
return Reflect.set(target, P, V, receiver);
}
if (target === receiver) {
// The `receiver` argument refers to the Proxy exotic object or an object
// that inherits from it, whereas `target` refers to the Proxy target:
if (target[implSymbol][utils.wrapperSymbol] === receiver) {
const globalObject = this._globalObject;
if (typeof P === "string" && !utils.isArrayIndexPropName(P)) {
if (typeof P === "string") {
let namedValue = V;
namedValue = conversions["DOMString"](namedValue, {

View File

@@ -98,7 +98,7 @@ exports.install = (globalObject, globalNames) => {
item(index) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'item' called on an object that is not a valid instance of DOMTokenList.");
}
if (arguments.length < 1) {
@@ -120,7 +120,7 @@ exports.install = (globalObject, globalNames) => {
contains(token) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'contains' called on an object that is not a valid instance of DOMTokenList.");
}
if (arguments.length < 1) {
@@ -144,7 +144,7 @@ exports.install = (globalObject, globalNames) => {
add() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'add' called on an object that is not a valid instance of DOMTokenList.");
}
const args = [];
for (let i = 0; i < arguments.length; i++) {
@@ -165,7 +165,7 @@ exports.install = (globalObject, globalNames) => {
remove() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'remove' called on an object that is not a valid instance of DOMTokenList.");
}
const args = [];
for (let i = 0; i < arguments.length; i++) {
@@ -186,7 +186,7 @@ exports.install = (globalObject, globalNames) => {
toggle(token) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'toggle' called on an object that is not a valid instance of DOMTokenList.");
}
if (arguments.length < 1) {
@@ -224,7 +224,7 @@ exports.install = (globalObject, globalNames) => {
replace(token, newToken) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'replace' called on an object that is not a valid instance of DOMTokenList.");
}
if (arguments.length < 2) {
@@ -260,7 +260,7 @@ exports.install = (globalObject, globalNames) => {
supports(token) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'supports' called on an object that is not a valid instance of DOMTokenList.");
}
if (arguments.length < 1) {
@@ -285,7 +285,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get length' called on an object that is not a valid instance of DOMTokenList.");
}
return esValue[implSymbol]["length"];
@@ -295,7 +295,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get value' called on an object that is not a valid instance of DOMTokenList.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -310,7 +310,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set value' called on an object that is not a valid instance of DOMTokenList.");
}
V = conversions["DOMString"](V, {
@@ -328,7 +328,7 @@ exports.install = (globalObject, globalNames) => {
toString() {
const esValue = this;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'toString' called on an object that is not a valid instance of DOMTokenList.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -447,8 +447,9 @@ const proxyHandler = {
if (typeof P === "symbol") {
return Reflect.set(target, P, V, receiver);
}
if (target === receiver) {
utils.isArrayIndexPropName(P);
// The `receiver` argument refers to the Proxy exotic object or an object
// that inherits from it, whereas `target` refers to the Proxy target:
if (target[implSymbol][utils.wrapperSymbol] === receiver) {
}
let ownDesc;

File diff suppressed because it is too large Load Diff

View File

@@ -101,7 +101,7 @@ exports.install = (globalObject, globalNames) => {
getElementById(elementId) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'getElementById' called on an object that is not a valid instance of DocumentFragment.");
}
if (arguments.length < 1) {
@@ -125,7 +125,7 @@ exports.install = (globalObject, globalNames) => {
prepend() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'prepend' called on an object that is not a valid instance of DocumentFragment.");
}
const args = [];
for (let i = 0; i < arguments.length; i++) {
@@ -150,7 +150,7 @@ exports.install = (globalObject, globalNames) => {
append() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'append' called on an object that is not a valid instance of DocumentFragment.");
}
const args = [];
for (let i = 0; i < arguments.length; i++) {
@@ -175,7 +175,7 @@ exports.install = (globalObject, globalNames) => {
querySelector(selectors) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'querySelector' called on an object that is not a valid instance of DocumentFragment.");
}
if (arguments.length < 1) {
@@ -199,7 +199,7 @@ exports.install = (globalObject, globalNames) => {
querySelectorAll(selectors) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'querySelectorAll' called on an object that is not a valid instance of DocumentFragment.");
}
if (arguments.length < 1) {
@@ -224,7 +224,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get children' called on an object that is not a valid instance of DocumentFragment.");
}
return utils.getSameObject(this, "children", () => {
@@ -236,7 +236,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get firstElementChild' called on an object that is not a valid instance of DocumentFragment."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["firstElementChild"]);
@@ -246,7 +248,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get lastElementChild' called on an object that is not a valid instance of DocumentFragment."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["lastElementChild"]);
@@ -256,7 +260,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get childElementCount' called on an object that is not a valid instance of DocumentFragment."
);
}
return esValue[implSymbol]["childElementCount"];

View File

@@ -101,7 +101,7 @@ exports.install = (globalObject, globalNames) => {
before() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'before' called on an object that is not a valid instance of DocumentType.");
}
const args = [];
for (let i = 0; i < arguments.length; i++) {
@@ -126,7 +126,7 @@ exports.install = (globalObject, globalNames) => {
after() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'after' called on an object that is not a valid instance of DocumentType.");
}
const args = [];
for (let i = 0; i < arguments.length; i++) {
@@ -151,7 +151,7 @@ exports.install = (globalObject, globalNames) => {
replaceWith() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'replaceWith' called on an object that is not a valid instance of DocumentType.");
}
const args = [];
for (let i = 0; i < arguments.length; i++) {
@@ -176,7 +176,7 @@ exports.install = (globalObject, globalNames) => {
remove() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'remove' called on an object that is not a valid instance of DocumentType.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -191,7 +191,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get name' called on an object that is not a valid instance of DocumentType.");
}
return esValue[implSymbol]["name"];
@@ -201,7 +201,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get publicId' called on an object that is not a valid instance of DocumentType.");
}
return esValue[implSymbol]["publicId"];
@@ -211,7 +211,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get systemId' called on an object that is not a valid instance of DocumentType.");
}
return esValue[implSymbol]["systemId"];

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
hasAttributes() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'hasAttributes' called on an object that is not a valid instance of Element.");
}
return esValue[implSymbol].hasAttributes();
@@ -112,7 +112,7 @@ exports.install = (globalObject, globalNames) => {
getAttributeNames() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'getAttributeNames' called on an object that is not a valid instance of Element.");
}
return utils.tryWrapperForImpl(esValue[implSymbol].getAttributeNames());
@@ -121,7 +121,7 @@ exports.install = (globalObject, globalNames) => {
getAttribute(qualifiedName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'getAttribute' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 1) {
@@ -145,7 +145,7 @@ exports.install = (globalObject, globalNames) => {
getAttributeNS(namespace, localName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'getAttributeNS' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 2) {
@@ -180,7 +180,7 @@ exports.install = (globalObject, globalNames) => {
setAttribute(qualifiedName, value) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'setAttribute' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 2) {
@@ -216,7 +216,7 @@ exports.install = (globalObject, globalNames) => {
setAttributeNS(namespace, qualifiedName, value) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'setAttributeNS' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 3) {
@@ -263,7 +263,7 @@ exports.install = (globalObject, globalNames) => {
removeAttribute(qualifiedName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'removeAttribute' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 1) {
@@ -292,7 +292,7 @@ exports.install = (globalObject, globalNames) => {
removeAttributeNS(namespace, localName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'removeAttributeNS' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 2) {
@@ -332,7 +332,7 @@ exports.install = (globalObject, globalNames) => {
toggleAttribute(qualifiedName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'toggleAttribute' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 1) {
@@ -370,7 +370,7 @@ exports.install = (globalObject, globalNames) => {
hasAttribute(qualifiedName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'hasAttribute' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 1) {
@@ -394,7 +394,7 @@ exports.install = (globalObject, globalNames) => {
hasAttributeNS(namespace, localName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'hasAttributeNS' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 2) {
@@ -429,7 +429,7 @@ exports.install = (globalObject, globalNames) => {
getAttributeNode(qualifiedName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'getAttributeNode' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 1) {
@@ -453,7 +453,7 @@ exports.install = (globalObject, globalNames) => {
getAttributeNodeNS(namespace, localName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'getAttributeNodeNS' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 2) {
@@ -488,7 +488,7 @@ exports.install = (globalObject, globalNames) => {
setAttributeNode(attr) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'setAttributeNode' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 1) {
@@ -515,7 +515,7 @@ exports.install = (globalObject, globalNames) => {
setAttributeNodeNS(attr) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'setAttributeNodeNS' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 1) {
@@ -542,7 +542,7 @@ exports.install = (globalObject, globalNames) => {
removeAttributeNode(attr) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'removeAttributeNode' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 1) {
@@ -569,7 +569,7 @@ exports.install = (globalObject, globalNames) => {
attachShadow(init) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'attachShadow' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 1) {
@@ -593,7 +593,7 @@ exports.install = (globalObject, globalNames) => {
closest(selectors) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'closest' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 1) {
@@ -613,7 +613,7 @@ exports.install = (globalObject, globalNames) => {
matches(selectors) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'matches' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 1) {
@@ -633,7 +633,7 @@ exports.install = (globalObject, globalNames) => {
webkitMatchesSelector(selectors) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'webkitMatchesSelector' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 1) {
@@ -657,7 +657,7 @@ exports.install = (globalObject, globalNames) => {
getElementsByTagName(qualifiedName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'getElementsByTagName' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 1) {
@@ -681,7 +681,7 @@ exports.install = (globalObject, globalNames) => {
getElementsByTagNameNS(namespace, localName) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'getElementsByTagNameNS' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 2) {
@@ -716,7 +716,7 @@ exports.install = (globalObject, globalNames) => {
getElementsByClassName(classNames) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'getElementsByClassName' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 1) {
@@ -740,7 +740,7 @@ exports.install = (globalObject, globalNames) => {
insertAdjacentElement(where, element) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'insertAdjacentElement' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 2) {
@@ -776,7 +776,7 @@ exports.install = (globalObject, globalNames) => {
insertAdjacentText(where, data) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'insertAdjacentText' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 2) {
@@ -807,7 +807,7 @@ exports.install = (globalObject, globalNames) => {
insertAdjacentHTML(position, text) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'insertAdjacentHTML' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 2) {
@@ -843,7 +843,7 @@ exports.install = (globalObject, globalNames) => {
getClientRects() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'getClientRects' called on an object that is not a valid instance of Element.");
}
return utils.tryWrapperForImpl(esValue[implSymbol].getClientRects());
@@ -852,7 +852,7 @@ exports.install = (globalObject, globalNames) => {
getBoundingClientRect() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'getBoundingClientRect' called on an object that is not a valid instance of Element.");
}
return utils.tryWrapperForImpl(esValue[implSymbol].getBoundingClientRect());
@@ -861,7 +861,7 @@ exports.install = (globalObject, globalNames) => {
before() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'before' called on an object that is not a valid instance of Element.");
}
const args = [];
for (let i = 0; i < arguments.length; i++) {
@@ -886,7 +886,7 @@ exports.install = (globalObject, globalNames) => {
after() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'after' called on an object that is not a valid instance of Element.");
}
const args = [];
for (let i = 0; i < arguments.length; i++) {
@@ -911,7 +911,7 @@ exports.install = (globalObject, globalNames) => {
replaceWith() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'replaceWith' called on an object that is not a valid instance of Element.");
}
const args = [];
for (let i = 0; i < arguments.length; i++) {
@@ -936,7 +936,7 @@ exports.install = (globalObject, globalNames) => {
remove() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'remove' called on an object that is not a valid instance of Element.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -950,7 +950,7 @@ exports.install = (globalObject, globalNames) => {
prepend() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'prepend' called on an object that is not a valid instance of Element.");
}
const args = [];
for (let i = 0; i < arguments.length; i++) {
@@ -975,7 +975,7 @@ exports.install = (globalObject, globalNames) => {
append() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'append' called on an object that is not a valid instance of Element.");
}
const args = [];
for (let i = 0; i < arguments.length; i++) {
@@ -1000,7 +1000,7 @@ exports.install = (globalObject, globalNames) => {
querySelector(selectors) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'querySelector' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 1) {
@@ -1024,7 +1024,7 @@ exports.install = (globalObject, globalNames) => {
querySelectorAll(selectors) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'querySelectorAll' called on an object that is not a valid instance of Element.");
}
if (arguments.length < 1) {
@@ -1049,7 +1049,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get namespaceURI' called on an object that is not a valid instance of Element.");
}
return esValue[implSymbol]["namespaceURI"];
@@ -1059,7 +1059,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get prefix' called on an object that is not a valid instance of Element.");
}
return esValue[implSymbol]["prefix"];
@@ -1069,7 +1069,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get localName' called on an object that is not a valid instance of Element.");
}
return esValue[implSymbol]["localName"];
@@ -1079,7 +1079,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get tagName' called on an object that is not a valid instance of Element.");
}
return esValue[implSymbol]["tagName"];
@@ -1089,7 +1089,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get id' called on an object that is not a valid instance of Element.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -1105,7 +1105,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set id' called on an object that is not a valid instance of Element.");
}
V = conversions["DOMString"](V, { context: "Failed to set the 'id' property on 'Element': The provided value" });
@@ -1122,7 +1122,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get className' called on an object that is not a valid instance of Element.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -1138,7 +1138,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set className' called on an object that is not a valid instance of Element.");
}
V = conversions["DOMString"](V, {
@@ -1157,7 +1157,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get classList' called on an object that is not a valid instance of Element.");
}
return utils.getSameObject(this, "classList", () => {
@@ -1169,7 +1169,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set classList' called on an object that is not a valid instance of Element.");
}
const Q = esValue["classList"];
@@ -1183,7 +1183,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get slot' called on an object that is not a valid instance of Element.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -1199,7 +1199,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set slot' called on an object that is not a valid instance of Element.");
}
V = conversions["DOMString"](V, {
@@ -1218,7 +1218,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get attributes' called on an object that is not a valid instance of Element.");
}
return utils.getSameObject(this, "attributes", () => {
@@ -1230,52 +1230,17 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get shadowRoot' called on an object that is not a valid instance of Element.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["shadowRoot"]);
}
get innerHTML() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
return esValue[implSymbol]["innerHTML"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
set innerHTML(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
}
V = conversions["DOMString"](V, {
context: "Failed to set the 'innerHTML' property on 'Element': The provided value",
treatNullAsEmptyString: true
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["innerHTML"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
get outerHTML() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get outerHTML' called on an object that is not a valid instance of Element.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -1290,7 +1255,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set outerHTML' called on an object that is not a valid instance of Element.");
}
V = conversions["DOMString"](V, {
@@ -1310,7 +1275,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get scrollTop' called on an object that is not a valid instance of Element.");
}
return esValue[implSymbol]["scrollTop"];
@@ -1320,7 +1285,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set scrollTop' called on an object that is not a valid instance of Element.");
}
V = conversions["unrestricted double"](V, {
@@ -1334,7 +1299,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get scrollLeft' called on an object that is not a valid instance of Element.");
}
return esValue[implSymbol]["scrollLeft"];
@@ -1344,7 +1309,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set scrollLeft' called on an object that is not a valid instance of Element.");
}
V = conversions["unrestricted double"](V, {
@@ -1358,7 +1323,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get scrollWidth' called on an object that is not a valid instance of Element.");
}
return esValue[implSymbol]["scrollWidth"];
@@ -1368,7 +1333,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get scrollHeight' called on an object that is not a valid instance of Element.");
}
return esValue[implSymbol]["scrollHeight"];
@@ -1378,7 +1343,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get clientTop' called on an object that is not a valid instance of Element.");
}
return esValue[implSymbol]["clientTop"];
@@ -1388,7 +1353,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get clientLeft' called on an object that is not a valid instance of Element.");
}
return esValue[implSymbol]["clientLeft"];
@@ -1398,7 +1363,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get clientWidth' called on an object that is not a valid instance of Element.");
}
return esValue[implSymbol]["clientWidth"];
@@ -1408,17 +1373,54 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get clientHeight' called on an object that is not a valid instance of Element.");
}
return esValue[implSymbol]["clientHeight"];
}
get innerHTML() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("'get innerHTML' called on an object that is not a valid instance of Element.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
return esValue[implSymbol]["innerHTML"];
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
set innerHTML(V) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("'set innerHTML' called on an object that is not a valid instance of Element.");
}
V = conversions["DOMString"](V, {
context: "Failed to set the 'innerHTML' property on 'Element': The provided value",
treatNullAsEmptyString: true
});
ceReactionsPreSteps_helpers_custom_elements(globalObject);
try {
esValue[implSymbol]["innerHTML"] = V;
} finally {
ceReactionsPostSteps_helpers_custom_elements(globalObject);
}
}
get previousElementSibling() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get previousElementSibling' called on an object that is not a valid instance of Element."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["previousElementSibling"]);
@@ -1428,7 +1430,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get nextElementSibling' called on an object that is not a valid instance of Element.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["nextElementSibling"]);
@@ -1438,7 +1440,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get children' called on an object that is not a valid instance of Element.");
}
return utils.getSameObject(this, "children", () => {
@@ -1450,7 +1452,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get firstElementChild' called on an object that is not a valid instance of Element.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["firstElementChild"]);
@@ -1460,7 +1462,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get lastElementChild' called on an object that is not a valid instance of Element.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["lastElementChild"]);
@@ -1470,7 +1472,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get childElementCount' called on an object that is not a valid instance of Element.");
}
return esValue[implSymbol]["childElementCount"];
@@ -1480,7 +1482,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get assignedSlot' called on an object that is not a valid instance of Element.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["assignedSlot"]);
@@ -1533,7 +1535,6 @@ exports.install = (globalObject, globalNames) => {
slot: { enumerable: true },
attributes: { enumerable: true },
shadowRoot: { enumerable: true },
innerHTML: { enumerable: true },
outerHTML: { enumerable: true },
scrollTop: { enumerable: true },
scrollLeft: { enumerable: true },
@@ -1543,6 +1544,7 @@ exports.install = (globalObject, globalNames) => {
clientLeft: { enumerable: true },
clientWidth: { enumerable: true },
clientHeight: { enumerable: true },
innerHTML: { enumerable: true },
previousElementSibling: { enumerable: true },
nextElementSibling: { enumerable: true },
children: { enumerable: true },

View File

@@ -117,7 +117,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get message' called on an object that is not a valid instance of ErrorEvent.");
}
return esValue[implSymbol]["message"];
@@ -127,7 +127,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get filename' called on an object that is not a valid instance of ErrorEvent.");
}
return esValue[implSymbol]["filename"];
@@ -137,7 +137,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get lineno' called on an object that is not a valid instance of ErrorEvent.");
}
return esValue[implSymbol]["lineno"];
@@ -147,7 +147,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get colno' called on an object that is not a valid instance of ErrorEvent.");
}
return esValue[implSymbol]["colno"];
@@ -157,7 +157,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get error' called on an object that is not a valid instance of ErrorEvent.");
}
return esValue[implSymbol]["error"];

View File

@@ -53,7 +53,7 @@ exports._internalSetup = (wrapper, globalObject) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get isTrusted' called on an object that is not a valid instance of Event.");
}
return esValue[implSymbol]["isTrusted"];
@@ -126,7 +126,7 @@ exports.install = (globalObject, globalNames) => {
composedPath() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'composedPath' called on an object that is not a valid instance of Event.");
}
return utils.tryWrapperForImpl(esValue[implSymbol].composedPath());
@@ -135,7 +135,7 @@ exports.install = (globalObject, globalNames) => {
stopPropagation() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'stopPropagation' called on an object that is not a valid instance of Event.");
}
return esValue[implSymbol].stopPropagation();
@@ -144,7 +144,7 @@ exports.install = (globalObject, globalNames) => {
stopImmediatePropagation() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'stopImmediatePropagation' called on an object that is not a valid instance of Event.");
}
return esValue[implSymbol].stopImmediatePropagation();
@@ -153,7 +153,7 @@ exports.install = (globalObject, globalNames) => {
preventDefault() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'preventDefault' called on an object that is not a valid instance of Event.");
}
return esValue[implSymbol].preventDefault();
@@ -162,7 +162,7 @@ exports.install = (globalObject, globalNames) => {
initEvent(type) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'initEvent' called on an object that is not a valid instance of Event.");
}
if (arguments.length < 1) {
@@ -201,7 +201,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get type' called on an object that is not a valid instance of Event.");
}
return esValue[implSymbol]["type"];
@@ -211,7 +211,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get target' called on an object that is not a valid instance of Event.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["target"]);
@@ -221,7 +221,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get srcElement' called on an object that is not a valid instance of Event.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["srcElement"]);
@@ -231,7 +231,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get currentTarget' called on an object that is not a valid instance of Event.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["currentTarget"]);
@@ -241,7 +241,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get eventPhase' called on an object that is not a valid instance of Event.");
}
return esValue[implSymbol]["eventPhase"];
@@ -251,7 +251,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get cancelBubble' called on an object that is not a valid instance of Event.");
}
return esValue[implSymbol]["cancelBubble"];
@@ -261,7 +261,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set cancelBubble' called on an object that is not a valid instance of Event.");
}
V = conversions["boolean"](V, {
@@ -275,7 +275,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get bubbles' called on an object that is not a valid instance of Event.");
}
return esValue[implSymbol]["bubbles"];
@@ -285,7 +285,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get cancelable' called on an object that is not a valid instance of Event.");
}
return esValue[implSymbol]["cancelable"];
@@ -295,7 +295,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get returnValue' called on an object that is not a valid instance of Event.");
}
return esValue[implSymbol]["returnValue"];
@@ -305,7 +305,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set returnValue' called on an object that is not a valid instance of Event.");
}
V = conversions["boolean"](V, {
@@ -319,7 +319,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get defaultPrevented' called on an object that is not a valid instance of Event.");
}
return esValue[implSymbol]["defaultPrevented"];
@@ -329,7 +329,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get composed' called on an object that is not a valid instance of Event.");
}
return esValue[implSymbol]["composed"];
@@ -339,7 +339,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get timeStamp' called on an object that is not a valid instance of Event.");
}
return esValue[implSymbol]["timeStamp"];

View File

@@ -0,0 +1,40 @@
"use strict";
const conversions = require("webidl-conversions");
const utils = require("./utils.js");
exports.convert = (value, { context = "The provided value" } = {}) => {
function invokeTheCallbackFunction(event) {
if (new.target !== undefined) {
throw new Error("Internal error: invokeTheCallbackFunction is not a constructor");
}
const thisArg = utils.tryWrapperForImpl(this);
let callResult;
if (typeof value === "function") {
event = utils.tryWrapperForImpl(event);
callResult = Reflect.apply(value, thisArg, [event]);
}
callResult = conversions["any"](callResult, { context: context });
return callResult;
}
invokeTheCallbackFunction.construct = event => {
event = utils.tryWrapperForImpl(event);
let callResult = Reflect.construct(value, [event]);
callResult = conversions["any"](callResult, { context: context });
return callResult;
};
invokeTheCallbackFunction[utils.wrapperSymbol] = value;
invokeTheCallbackFunction.objectReference = value;
return invokeTheCallbackFunction;
};

View File

@@ -96,7 +96,7 @@ exports.install = (globalObject, globalNames) => {
addEventListener(type, callback) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'addEventListener' called on an object that is not a valid instance of EventTarget.");
}
if (arguments.length < 2) {
@@ -154,7 +154,7 @@ exports.install = (globalObject, globalNames) => {
removeEventListener(type, callback) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'removeEventListener' called on an object that is not a valid instance of EventTarget.");
}
if (arguments.length < 2) {
@@ -212,7 +212,7 @@ exports.install = (globalObject, globalNames) => {
dispatchEvent(event) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'dispatchEvent' called on an object that is not a valid instance of EventTarget.");
}
if (arguments.length < 1) {

View File

@@ -92,7 +92,7 @@ exports.install = (globalObject, globalNames) => {
AddSearchProvider() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'AddSearchProvider' called on an object that is not a valid instance of External.");
}
return esValue[implSymbol].AddSearchProvider();
@@ -101,7 +101,9 @@ exports.install = (globalObject, globalNames) => {
IsSearchProviderInstalled() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'IsSearchProviderInstalled' called on an object that is not a valid instance of External."
);
}
return esValue[implSymbol].IsSearchProviderInstalled();

View File

@@ -140,7 +140,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get name' called on an object that is not a valid instance of File.");
}
return esValue[implSymbol]["name"];
@@ -150,7 +150,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get lastModified' called on an object that is not a valid instance of File.");
}
return esValue[implSymbol]["lastModified"];

View File

@@ -96,7 +96,7 @@ exports.install = (globalObject, globalNames) => {
item(index) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'item' called on an object that is not a valid instance of FileList.");
}
if (arguments.length < 1) {
@@ -119,7 +119,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get length' called on an object that is not a valid instance of FileList.");
}
return esValue[implSymbol]["length"];
@@ -221,8 +221,9 @@ const proxyHandler = {
if (typeof P === "symbol") {
return Reflect.set(target, P, V, receiver);
}
if (target === receiver) {
utils.isArrayIndexPropName(P);
// The `receiver` argument refers to the Proxy exotic object or an object
// that inherits from it, whereas `target` refers to the Proxy target:
if (target[implSymbol][utils.wrapperSymbol] === receiver) {
}
let ownDesc;

View File

@@ -4,6 +4,7 @@ const conversions = require("webidl-conversions");
const utils = require("./utils.js");
const Blob = require("./Blob.js");
const EventHandlerNonNull = require("./EventHandlerNonNull.js");
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const EventTarget = require("./EventTarget.js");
@@ -100,7 +101,7 @@ exports.install = (globalObject, globalNames) => {
readAsArrayBuffer(blob) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'readAsArrayBuffer' called on an object that is not a valid instance of FileReader.");
}
if (arguments.length < 1) {
@@ -124,7 +125,7 @@ exports.install = (globalObject, globalNames) => {
readAsBinaryString(blob) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'readAsBinaryString' called on an object that is not a valid instance of FileReader.");
}
if (arguments.length < 1) {
@@ -148,7 +149,7 @@ exports.install = (globalObject, globalNames) => {
readAsText(blob) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'readAsText' called on an object that is not a valid instance of FileReader.");
}
if (arguments.length < 1) {
@@ -179,7 +180,7 @@ exports.install = (globalObject, globalNames) => {
readAsDataURL(blob) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'readAsDataURL' called on an object that is not a valid instance of FileReader.");
}
if (arguments.length < 1) {
@@ -201,7 +202,7 @@ exports.install = (globalObject, globalNames) => {
abort() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'abort' called on an object that is not a valid instance of FileReader.");
}
return esValue[implSymbol].abort();
@@ -211,7 +212,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get readyState' called on an object that is not a valid instance of FileReader.");
}
return esValue[implSymbol]["readyState"];
@@ -221,7 +222,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get result' called on an object that is not a valid instance of FileReader.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["result"]);
@@ -231,7 +232,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get error' called on an object that is not a valid instance of FileReader.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["error"]);
@@ -241,7 +242,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get onloadstart' called on an object that is not a valid instance of FileReader.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onloadstart"]);
@@ -251,11 +252,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set onloadstart' called on an object that is not a valid instance of FileReader.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onloadstart' property on 'FileReader': The provided value"
});
}
esValue[implSymbol]["onloadstart"] = V;
}
@@ -263,7 +269,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get onprogress' called on an object that is not a valid instance of FileReader.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onprogress"]);
@@ -273,11 +279,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set onprogress' called on an object that is not a valid instance of FileReader.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onprogress' property on 'FileReader': The provided value"
});
}
esValue[implSymbol]["onprogress"] = V;
}
@@ -285,7 +296,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get onload' called on an object that is not a valid instance of FileReader.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onload"]);
@@ -295,11 +306,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set onload' called on an object that is not a valid instance of FileReader.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onload' property on 'FileReader': The provided value"
});
}
esValue[implSymbol]["onload"] = V;
}
@@ -307,7 +323,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get onabort' called on an object that is not a valid instance of FileReader.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onabort"]);
@@ -317,11 +333,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set onabort' called on an object that is not a valid instance of FileReader.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onabort' property on 'FileReader': The provided value"
});
}
esValue[implSymbol]["onabort"] = V;
}
@@ -329,7 +350,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get onerror' called on an object that is not a valid instance of FileReader.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onerror"]);
@@ -339,11 +360,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set onerror' called on an object that is not a valid instance of FileReader.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onerror' property on 'FileReader': The provided value"
});
}
esValue[implSymbol]["onerror"] = V;
}
@@ -351,7 +377,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get onloadend' called on an object that is not a valid instance of FileReader.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onloadend"]);
@@ -361,11 +387,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set onloadend' called on an object that is not a valid instance of FileReader.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onloadend' property on 'FileReader': The provided value"
});
}
esValue[implSymbol]["onloadend"] = V;
}
}

View File

@@ -117,7 +117,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get relatedTarget' called on an object that is not a valid instance of FocusEvent.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["relatedTarget"]);

View File

@@ -5,6 +5,7 @@ const utils = require("./utils.js");
const HTMLFormElement = require("./HTMLFormElement.js");
const Blob = require("./Blob.js");
const Function = require("./Function.js");
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
@@ -13,7 +14,11 @@ const interfaceName = "FormData";
const IteratorPrototype = Object.create(utils.IteratorPrototype, {
next: {
value: function next() {
const internal = this[utils.iterInternalSymbol];
const internal = this && this[utils.iterInternalSymbol];
if (!internal) {
throw new TypeError("next() called on a value that is not an iterator prototype object");
}
const { target, kind, index } = internal;
const values = Array.from(target[implSymbol]);
const len = values.length;
@@ -23,21 +28,7 @@ const IteratorPrototype = Object.create(utils.IteratorPrototype, {
const pair = values[index];
internal.index = index + 1;
const [key, value] = pair.map(utils.tryWrapperForImpl);
let result;
switch (kind) {
case "key":
result = key;
break;
case "value":
result = value;
break;
case "key+value":
result = [key, value];
break;
}
return { value: result, done: false };
return utils.iteratorResult(pair.map(utils.tryWrapperForImpl), kind);
},
writable: true,
enumerable: true,
@@ -150,7 +141,7 @@ exports.install = (globalObject, globalNames) => {
append(name, value) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'append' called on an object that is not a valid instance of FormData.");
}
if (arguments.length < 2) {
@@ -216,7 +207,7 @@ exports.install = (globalObject, globalNames) => {
delete(name) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'delete' called on an object that is not a valid instance of FormData.");
}
if (arguments.length < 1) {
@@ -236,7 +227,7 @@ exports.install = (globalObject, globalNames) => {
get(name) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get' called on an object that is not a valid instance of FormData.");
}
if (arguments.length < 1) {
@@ -256,7 +247,7 @@ exports.install = (globalObject, globalNames) => {
getAll(name) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'getAll' called on an object that is not a valid instance of FormData.");
}
if (arguments.length < 1) {
@@ -276,7 +267,7 @@ exports.install = (globalObject, globalNames) => {
has(name) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'has' called on an object that is not a valid instance of FormData.");
}
if (arguments.length < 1) {
@@ -296,7 +287,7 @@ exports.install = (globalObject, globalNames) => {
set(name, value) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set' called on an object that is not a valid instance of FormData.");
}
if (arguments.length < 2) {
@@ -360,38 +351,36 @@ exports.install = (globalObject, globalNames) => {
}
keys() {
if (!this || !exports.is(this)) {
throw new TypeError("Illegal invocation");
if (!exports.is(this)) {
throw new TypeError("'keys' called on an object that is not a valid instance of FormData.");
}
return exports.createDefaultIterator(this, "key");
}
values() {
if (!this || !exports.is(this)) {
throw new TypeError("Illegal invocation");
if (!exports.is(this)) {
throw new TypeError("'values' called on an object that is not a valid instance of FormData.");
}
return exports.createDefaultIterator(this, "value");
}
entries() {
if (!this || !exports.is(this)) {
throw new TypeError("Illegal invocation");
if (!exports.is(this)) {
throw new TypeError("'entries' called on an object that is not a valid instance of FormData.");
}
return exports.createDefaultIterator(this, "key+value");
}
forEach(callback) {
if (!this || !exports.is(this)) {
throw new TypeError("Illegal invocation");
if (!exports.is(this)) {
throw new TypeError("'forEach' called on an object that is not a valid instance of FormData.");
}
if (arguments.length < 1) {
throw new TypeError("Failed to execute 'forEach' on 'iterable': 1 argument required, " + "but only 0 present.");
}
if (typeof callback !== "function") {
throw new TypeError(
"Failed to execute 'forEach' on 'iterable': The callback provided " + "as parameter 1 is not a function."
);
}
callback = Function.convert(callback, {
context: "Failed to execute 'forEach' on 'iterable': The callback provided as parameter 1"
});
const thisArg = arguments[1];
let pairs = Array.from(this[implSymbol]);
let i = 0;

View File

@@ -0,0 +1,46 @@
"use strict";
const conversions = require("webidl-conversions");
const utils = require("./utils.js");
exports.convert = (value, { context = "The provided value" } = {}) => {
if (typeof value !== "function") {
throw new TypeError(context + " is not a function");
}
function invokeTheCallbackFunction(...args) {
if (new.target !== undefined) {
throw new Error("Internal error: invokeTheCallbackFunction is not a constructor");
}
const thisArg = utils.tryWrapperForImpl(this);
let callResult;
for (let i = 0; i < args.length; i++) {
args[i] = utils.tryWrapperForImpl(args[i]);
}
callResult = Reflect.apply(value, thisArg, args);
callResult = conversions["any"](callResult, { context: context });
return callResult;
}
invokeTheCallbackFunction.construct = (...args) => {
for (let i = 0; i < args.length; i++) {
args[i] = utils.tryWrapperForImpl(args[i]);
}
let callResult = Reflect.construct(value, args);
callResult = conversions["any"](callResult, { context: context });
return callResult;
};
invokeTheCallbackFunction[utils.wrapperSymbol] = value;
invokeTheCallbackFunction.objectReference = value;
return invokeTheCallbackFunction;
};

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get target' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -119,7 +119,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set target' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["DOMString"](V, {
@@ -138,7 +138,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get download' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -154,7 +154,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set download' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["DOMString"](V, {
@@ -173,7 +173,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get rel' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -189,7 +189,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set rel' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["DOMString"](V, {
@@ -208,7 +208,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get relList' called on an object that is not a valid instance of HTMLAnchorElement.");
}
return utils.getSameObject(this, "relList", () => {
@@ -220,7 +220,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set relList' called on an object that is not a valid instance of HTMLAnchorElement.");
}
const Q = esValue["relList"];
@@ -234,7 +234,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get hreflang' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -250,7 +250,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set hreflang' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["DOMString"](V, {
@@ -269,7 +269,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get type' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -285,7 +285,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set type' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["DOMString"](V, {
@@ -304,7 +304,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get text' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -319,7 +319,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set text' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["DOMString"](V, {
@@ -338,7 +338,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get coords' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -354,7 +354,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set coords' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["DOMString"](V, {
@@ -373,7 +373,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get charset' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -389,7 +389,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set charset' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["DOMString"](V, {
@@ -408,7 +408,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get name' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -424,7 +424,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set name' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["DOMString"](V, {
@@ -443,7 +443,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get rev' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -459,7 +459,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set rev' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["DOMString"](V, {
@@ -478,7 +478,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get shape' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -494,7 +494,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set shape' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["DOMString"](V, {
@@ -513,7 +513,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get href' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -528,7 +528,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set href' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["USVString"](V, {
@@ -546,7 +546,7 @@ exports.install = (globalObject, globalNames) => {
toString() {
const esValue = this;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'toString' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -561,7 +561,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get origin' called on an object that is not a valid instance of HTMLAnchorElement.");
}
return esValue[implSymbol]["origin"];
@@ -571,7 +571,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get protocol' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -586,7 +586,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set protocol' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["USVString"](V, {
@@ -605,7 +605,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get username' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -620,7 +620,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set username' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["USVString"](V, {
@@ -639,7 +639,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get password' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -654,7 +654,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set password' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["USVString"](V, {
@@ -673,7 +673,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get host' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -688,7 +688,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set host' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["USVString"](V, {
@@ -707,7 +707,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get hostname' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -722,7 +722,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set hostname' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["USVString"](V, {
@@ -741,7 +741,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get port' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -756,7 +756,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set port' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["USVString"](V, {
@@ -775,7 +775,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get pathname' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -790,7 +790,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set pathname' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["USVString"](V, {
@@ -809,7 +809,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get search' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -824,7 +824,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set search' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["USVString"](V, {
@@ -843,7 +843,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get hash' called on an object that is not a valid instance of HTMLAnchorElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -858,7 +858,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set hash' called on an object that is not a valid instance of HTMLAnchorElement.");
}
V = conversions["USVString"](V, {

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get alt' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -119,7 +119,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set alt' called on an object that is not a valid instance of HTMLAreaElement.");
}
V = conversions["DOMString"](V, {
@@ -138,7 +138,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get coords' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -154,7 +154,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set coords' called on an object that is not a valid instance of HTMLAreaElement.");
}
V = conversions["DOMString"](V, {
@@ -173,7 +173,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get shape' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -189,7 +189,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set shape' called on an object that is not a valid instance of HTMLAreaElement.");
}
V = conversions["DOMString"](V, {
@@ -208,7 +208,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get target' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -224,7 +224,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set target' called on an object that is not a valid instance of HTMLAreaElement.");
}
V = conversions["DOMString"](V, {
@@ -243,7 +243,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get rel' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -259,7 +259,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set rel' called on an object that is not a valid instance of HTMLAreaElement.");
}
V = conversions["DOMString"](V, {
@@ -278,7 +278,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get relList' called on an object that is not a valid instance of HTMLAreaElement.");
}
return utils.getSameObject(this, "relList", () => {
@@ -290,7 +290,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set relList' called on an object that is not a valid instance of HTMLAreaElement.");
}
const Q = esValue["relList"];
@@ -304,7 +304,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get noHref' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -319,7 +319,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set noHref' called on an object that is not a valid instance of HTMLAreaElement.");
}
V = conversions["boolean"](V, {
@@ -342,7 +342,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get href' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -357,7 +357,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set href' called on an object that is not a valid instance of HTMLAreaElement.");
}
V = conversions["USVString"](V, {
@@ -375,7 +375,7 @@ exports.install = (globalObject, globalNames) => {
toString() {
const esValue = this;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'toString' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -390,7 +390,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get origin' called on an object that is not a valid instance of HTMLAreaElement.");
}
return esValue[implSymbol]["origin"];
@@ -400,7 +400,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get protocol' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -415,7 +415,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set protocol' called on an object that is not a valid instance of HTMLAreaElement.");
}
V = conversions["USVString"](V, {
@@ -434,7 +434,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get username' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -449,7 +449,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set username' called on an object that is not a valid instance of HTMLAreaElement.");
}
V = conversions["USVString"](V, {
@@ -468,7 +468,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get password' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -483,7 +483,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set password' called on an object that is not a valid instance of HTMLAreaElement.");
}
V = conversions["USVString"](V, {
@@ -502,7 +502,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get host' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -517,7 +517,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set host' called on an object that is not a valid instance of HTMLAreaElement.");
}
V = conversions["USVString"](V, {
@@ -536,7 +536,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get hostname' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -551,7 +551,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set hostname' called on an object that is not a valid instance of HTMLAreaElement.");
}
V = conversions["USVString"](V, {
@@ -570,7 +570,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get port' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -585,7 +585,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set port' called on an object that is not a valid instance of HTMLAreaElement.");
}
V = conversions["USVString"](V, {
@@ -604,7 +604,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get pathname' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -619,7 +619,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set pathname' called on an object that is not a valid instance of HTMLAreaElement.");
}
V = conversions["USVString"](V, {
@@ -638,7 +638,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get search' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -653,7 +653,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set search' called on an object that is not a valid instance of HTMLAreaElement.");
}
V = conversions["USVString"](V, {
@@ -672,7 +672,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get hash' called on an object that is not a valid instance of HTMLAreaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -687,7 +687,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set hash' called on an object that is not a valid instance of HTMLAreaElement.");
}
V = conversions["USVString"](V, {

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get clear' called on an object that is not a valid instance of HTMLBRElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -119,7 +119,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set clear' called on an object that is not a valid instance of HTMLBRElement.");
}
V = conversions["DOMString"](V, {

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get href' called on an object that is not a valid instance of HTMLBaseElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -118,7 +118,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set href' called on an object that is not a valid instance of HTMLBaseElement.");
}
V = conversions["USVString"](V, {
@@ -137,7 +137,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get target' called on an object that is not a valid instance of HTMLBaseElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -153,7 +153,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set target' called on an object that is not a valid instance of HTMLBaseElement.");
}
V = conversions["DOMString"](V, {

View File

@@ -6,6 +6,8 @@ const utils = require("./utils.js");
const HTMLConstructor_helpers_html_constructor = require("../helpers/html-constructor.js").HTMLConstructor;
const ceReactionsPreSteps_helpers_custom_elements = require("../helpers/custom-elements.js").ceReactionsPreSteps;
const ceReactionsPostSteps_helpers_custom_elements = require("../helpers/custom-elements.js").ceReactionsPostSteps;
const EventHandlerNonNull = require("./EventHandlerNonNull.js");
const OnBeforeUnloadEventHandlerNonNull = require("./OnBeforeUnloadEventHandlerNonNull.js");
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = require("./HTMLElement.js");
@@ -103,7 +105,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get text' called on an object that is not a valid instance of HTMLBodyElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -119,7 +121,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set text' called on an object that is not a valid instance of HTMLBodyElement.");
}
V = conversions["DOMString"](V, {
@@ -139,7 +141,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get link' called on an object that is not a valid instance of HTMLBodyElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -155,7 +157,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set link' called on an object that is not a valid instance of HTMLBodyElement.");
}
V = conversions["DOMString"](V, {
@@ -175,7 +177,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get vLink' called on an object that is not a valid instance of HTMLBodyElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -191,7 +193,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set vLink' called on an object that is not a valid instance of HTMLBodyElement.");
}
V = conversions["DOMString"](V, {
@@ -211,7 +213,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get aLink' called on an object that is not a valid instance of HTMLBodyElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -227,7 +229,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set aLink' called on an object that is not a valid instance of HTMLBodyElement.");
}
V = conversions["DOMString"](V, {
@@ -247,7 +249,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get bgColor' called on an object that is not a valid instance of HTMLBodyElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -263,7 +265,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set bgColor' called on an object that is not a valid instance of HTMLBodyElement.");
}
V = conversions["DOMString"](V, {
@@ -283,7 +285,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get background' called on an object that is not a valid instance of HTMLBodyElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -299,7 +301,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set background' called on an object that is not a valid instance of HTMLBodyElement.");
}
V = conversions["DOMString"](V, {
@@ -318,7 +320,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get onafterprint' called on an object that is not a valid instance of HTMLBodyElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onafterprint"]);
@@ -328,11 +330,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set onafterprint' called on an object that is not a valid instance of HTMLBodyElement.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onafterprint' property on 'HTMLBodyElement': The provided value"
});
}
esValue[implSymbol]["onafterprint"] = V;
}
@@ -340,7 +347,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get onbeforeprint' called on an object that is not a valid instance of HTMLBodyElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeprint"]);
@@ -350,11 +357,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set onbeforeprint' called on an object that is not a valid instance of HTMLBodyElement.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onbeforeprint' property on 'HTMLBodyElement': The provided value"
});
}
esValue[implSymbol]["onbeforeprint"] = V;
}
@@ -362,7 +374,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get onbeforeunload' called on an object that is not a valid instance of HTMLBodyElement."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeunload"]);
@@ -372,11 +386,18 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set onbeforeunload' called on an object that is not a valid instance of HTMLBodyElement."
);
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = OnBeforeUnloadEventHandlerNonNull.convert(V, {
context: "Failed to set the 'onbeforeunload' property on 'HTMLBodyElement': The provided value"
});
}
esValue[implSymbol]["onbeforeunload"] = V;
}
@@ -384,7 +405,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get onhashchange' called on an object that is not a valid instance of HTMLBodyElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onhashchange"]);
@@ -394,11 +415,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set onhashchange' called on an object that is not a valid instance of HTMLBodyElement.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onhashchange' property on 'HTMLBodyElement': The provided value"
});
}
esValue[implSymbol]["onhashchange"] = V;
}
@@ -406,7 +432,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get onlanguagechange' called on an object that is not a valid instance of HTMLBodyElement."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onlanguagechange"]);
@@ -416,11 +444,18 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set onlanguagechange' called on an object that is not a valid instance of HTMLBodyElement."
);
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onlanguagechange' property on 'HTMLBodyElement': The provided value"
});
}
esValue[implSymbol]["onlanguagechange"] = V;
}
@@ -428,7 +463,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get onmessage' called on an object that is not a valid instance of HTMLBodyElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onmessage"]);
@@ -438,11 +473,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set onmessage' called on an object that is not a valid instance of HTMLBodyElement.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onmessage' property on 'HTMLBodyElement': The provided value"
});
}
esValue[implSymbol]["onmessage"] = V;
}
@@ -450,7 +490,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get onmessageerror' called on an object that is not a valid instance of HTMLBodyElement."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onmessageerror"]);
@@ -460,11 +502,18 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set onmessageerror' called on an object that is not a valid instance of HTMLBodyElement."
);
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onmessageerror' property on 'HTMLBodyElement': The provided value"
});
}
esValue[implSymbol]["onmessageerror"] = V;
}
@@ -472,7 +521,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get onoffline' called on an object that is not a valid instance of HTMLBodyElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onoffline"]);
@@ -482,11 +531,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set onoffline' called on an object that is not a valid instance of HTMLBodyElement.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onoffline' property on 'HTMLBodyElement': The provided value"
});
}
esValue[implSymbol]["onoffline"] = V;
}
@@ -494,7 +548,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get ononline' called on an object that is not a valid instance of HTMLBodyElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["ononline"]);
@@ -504,11 +558,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set ononline' called on an object that is not a valid instance of HTMLBodyElement.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'ononline' property on 'HTMLBodyElement': The provided value"
});
}
esValue[implSymbol]["ononline"] = V;
}
@@ -516,7 +575,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get onpagehide' called on an object that is not a valid instance of HTMLBodyElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onpagehide"]);
@@ -526,11 +585,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set onpagehide' called on an object that is not a valid instance of HTMLBodyElement.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onpagehide' property on 'HTMLBodyElement': The provided value"
});
}
esValue[implSymbol]["onpagehide"] = V;
}
@@ -538,7 +602,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get onpageshow' called on an object that is not a valid instance of HTMLBodyElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onpageshow"]);
@@ -548,11 +612,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set onpageshow' called on an object that is not a valid instance of HTMLBodyElement.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onpageshow' property on 'HTMLBodyElement': The provided value"
});
}
esValue[implSymbol]["onpageshow"] = V;
}
@@ -560,7 +629,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get onpopstate' called on an object that is not a valid instance of HTMLBodyElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onpopstate"]);
@@ -570,11 +639,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set onpopstate' called on an object that is not a valid instance of HTMLBodyElement.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onpopstate' property on 'HTMLBodyElement': The provided value"
});
}
esValue[implSymbol]["onpopstate"] = V;
}
@@ -582,7 +656,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get onrejectionhandled' called on an object that is not a valid instance of HTMLBodyElement."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onrejectionhandled"]);
@@ -592,11 +668,18 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set onrejectionhandled' called on an object that is not a valid instance of HTMLBodyElement."
);
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onrejectionhandled' property on 'HTMLBodyElement': The provided value"
});
}
esValue[implSymbol]["onrejectionhandled"] = V;
}
@@ -604,7 +687,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get onstorage' called on an object that is not a valid instance of HTMLBodyElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onstorage"]);
@@ -614,11 +697,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set onstorage' called on an object that is not a valid instance of HTMLBodyElement.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onstorage' property on 'HTMLBodyElement': The provided value"
});
}
esValue[implSymbol]["onstorage"] = V;
}
@@ -626,7 +714,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get onunhandledrejection' called on an object that is not a valid instance of HTMLBodyElement."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onunhandledrejection"]);
@@ -636,11 +726,18 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set onunhandledrejection' called on an object that is not a valid instance of HTMLBodyElement."
);
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onunhandledrejection' property on 'HTMLBodyElement': The provided value"
});
}
esValue[implSymbol]["onunhandledrejection"] = V;
}
@@ -648,7 +745,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get onunload' called on an object that is not a valid instance of HTMLBodyElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onunload"]);
@@ -658,11 +755,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set onunload' called on an object that is not a valid instance of HTMLBodyElement.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onunload' property on 'HTMLBodyElement': The provided value"
});
}
esValue[implSymbol]["onunload"] = V;
}
}

View File

@@ -102,7 +102,7 @@ exports.install = (globalObject, globalNames) => {
checkValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLButtonElement.");
}
return esValue[implSymbol].checkValidity();
@@ -111,7 +111,7 @@ exports.install = (globalObject, globalNames) => {
reportValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'reportValidity' called on an object that is not a valid instance of HTMLButtonElement.");
}
return esValue[implSymbol].reportValidity();
@@ -120,7 +120,9 @@ exports.install = (globalObject, globalNames) => {
setCustomValidity(error) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'setCustomValidity' called on an object that is not a valid instance of HTMLButtonElement."
);
}
if (arguments.length < 1) {
@@ -145,7 +147,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get autofocus' called on an object that is not a valid instance of HTMLButtonElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -160,7 +162,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set autofocus' called on an object that is not a valid instance of HTMLButtonElement.");
}
V = conversions["boolean"](V, {
@@ -183,7 +185,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get disabled' called on an object that is not a valid instance of HTMLButtonElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -198,7 +200,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set disabled' called on an object that is not a valid instance of HTMLButtonElement.");
}
V = conversions["boolean"](V, {
@@ -221,7 +223,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get form' called on an object that is not a valid instance of HTMLButtonElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
@@ -231,7 +233,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get formNoValidate' called on an object that is not a valid instance of HTMLButtonElement."
);
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -246,7 +250,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set formNoValidate' called on an object that is not a valid instance of HTMLButtonElement."
);
}
V = conversions["boolean"](V, {
@@ -269,7 +275,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get formTarget' called on an object that is not a valid instance of HTMLButtonElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -285,7 +291,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set formTarget' called on an object that is not a valid instance of HTMLButtonElement.");
}
V = conversions["DOMString"](V, {
@@ -304,7 +310,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get name' called on an object that is not a valid instance of HTMLButtonElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -320,7 +326,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set name' called on an object that is not a valid instance of HTMLButtonElement.");
}
V = conversions["DOMString"](V, {
@@ -339,7 +345,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get type' called on an object that is not a valid instance of HTMLButtonElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -354,7 +360,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set type' called on an object that is not a valid instance of HTMLButtonElement.");
}
V = conversions["DOMString"](V, {
@@ -373,7 +379,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get value' called on an object that is not a valid instance of HTMLButtonElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -389,7 +395,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set value' called on an object that is not a valid instance of HTMLButtonElement.");
}
V = conversions["DOMString"](V, {
@@ -408,7 +414,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get willValidate' called on an object that is not a valid instance of HTMLButtonElement."
);
}
return esValue[implSymbol]["willValidate"];
@@ -418,7 +426,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get validity' called on an object that is not a valid instance of HTMLButtonElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
@@ -428,7 +436,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get validationMessage' called on an object that is not a valid instance of HTMLButtonElement."
);
}
return esValue[implSymbol]["validationMessage"];
@@ -438,7 +448,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get labels' called on an object that is not a valid instance of HTMLButtonElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);

View File

@@ -4,6 +4,7 @@ const conversions = require("webidl-conversions");
const utils = require("./utils.js");
const HTMLConstructor_helpers_html_constructor = require("../helpers/html-constructor.js").HTMLConstructor;
const BlobCallback = require("./BlobCallback.js");
const ceReactionsPreSteps_helpers_custom_elements = require("../helpers/custom-elements.js").ceReactionsPreSteps;
const ceReactionsPostSteps_helpers_custom_elements = require("../helpers/custom-elements.js").ceReactionsPostSteps;
const implSymbol = utils.implSymbol;
@@ -102,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
getContext(contextId) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'getContext' called on an object that is not a valid instance of HTMLCanvasElement.");
}
if (arguments.length < 1) {
@@ -133,7 +134,7 @@ exports.install = (globalObject, globalNames) => {
toDataURL() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'toDataURL' called on an object that is not a valid instance of HTMLCanvasElement.");
}
const args = [];
{
@@ -160,7 +161,7 @@ exports.install = (globalObject, globalNames) => {
toBlob(callback) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'toBlob' called on an object that is not a valid instance of HTMLCanvasElement.");
}
if (arguments.length < 1) {
@@ -173,7 +174,9 @@ exports.install = (globalObject, globalNames) => {
const args = [];
{
let curArg = arguments[0];
curArg = utils.tryImplForWrapper(curArg);
curArg = BlobCallback.convert(curArg, {
context: "Failed to execute 'toBlob' on 'HTMLCanvasElement': parameter 1"
});
args.push(curArg);
}
{
@@ -201,7 +204,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get width' called on an object that is not a valid instance of HTMLCanvasElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -216,7 +219,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set width' called on an object that is not a valid instance of HTMLCanvasElement.");
}
V = conversions["unsigned long"](V, {
@@ -235,7 +238,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get height' called on an object that is not a valid instance of HTMLCanvasElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -250,7 +253,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set height' called on an object that is not a valid instance of HTMLCanvasElement.");
}
V = conversions["unsigned long"](V, {

View File

@@ -96,7 +96,7 @@ exports.install = (globalObject, globalNames) => {
item(index) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'item' called on an object that is not a valid instance of HTMLCollection.");
}
if (arguments.length < 1) {
@@ -120,7 +120,7 @@ exports.install = (globalObject, globalNames) => {
namedItem(name) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'namedItem' called on an object that is not a valid instance of HTMLCollection.");
}
if (arguments.length < 1) {
@@ -145,7 +145,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get length' called on an object that is not a valid instance of HTMLCollection.");
}
return esValue[implSymbol]["length"];
@@ -265,10 +265,9 @@ const proxyHandler = {
if (typeof P === "symbol") {
return Reflect.set(target, P, V, receiver);
}
if (target === receiver) {
utils.isArrayIndexPropName(P);
typeof P === "string" && !utils.isArrayIndexPropName(P);
// The `receiver` argument refers to the Proxy exotic object or an object
// that inherits from it, whereas `target` refers to the Proxy target:
if (target[implSymbol][utils.wrapperSymbol] === receiver) {
}
let ownDesc;

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get compact' called on an object that is not a valid instance of HTMLDListElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -118,7 +118,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set compact' called on an object that is not a valid instance of HTMLDListElement.");
}
V = conversions["boolean"](V, {

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get value' called on an object that is not a valid instance of HTMLDataElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -119,7 +119,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set value' called on an object that is not a valid instance of HTMLDataElement.");
}
V = conversions["DOMString"](V, {

View File

@@ -101,7 +101,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get options' called on an object that is not a valid instance of HTMLDataListElement.");
}
return utils.getSameObject(this, "options", () => {

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get open' called on an object that is not a valid instance of HTMLDetailsElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -118,7 +118,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set open' called on an object that is not a valid instance of HTMLDetailsElement.");
}
V = conversions["boolean"](V, {

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get open' called on an object that is not a valid instance of HTMLDialogElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -118,7 +118,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set open' called on an object that is not a valid instance of HTMLDialogElement.");
}
V = conversions["boolean"](V, {

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get compact' called on an object that is not a valid instance of HTMLDirectoryElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -118,7 +118,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set compact' called on an object that is not a valid instance of HTMLDirectoryElement.");
}
V = conversions["boolean"](V, {

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get align' called on an object that is not a valid instance of HTMLDivElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -119,7 +119,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set align' called on an object that is not a valid instance of HTMLDivElement.");
}
V = conversions["DOMString"](V, {

File diff suppressed because it is too large Load Diff

View File

@@ -106,7 +106,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get src' called on an object that is not a valid instance of HTMLEmbedElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -132,7 +132,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set src' called on an object that is not a valid instance of HTMLEmbedElement.");
}
V = conversions["USVString"](V, {
@@ -151,7 +151,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get type' called on an object that is not a valid instance of HTMLEmbedElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -167,7 +167,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set type' called on an object that is not a valid instance of HTMLEmbedElement.");
}
V = conversions["DOMString"](V, {
@@ -186,7 +186,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get width' called on an object that is not a valid instance of HTMLEmbedElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -202,7 +202,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set width' called on an object that is not a valid instance of HTMLEmbedElement.");
}
V = conversions["DOMString"](V, {
@@ -221,7 +221,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get height' called on an object that is not a valid instance of HTMLEmbedElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -237,7 +237,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set height' called on an object that is not a valid instance of HTMLEmbedElement.");
}
V = conversions["DOMString"](V, {
@@ -256,7 +256,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get align' called on an object that is not a valid instance of HTMLEmbedElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -272,7 +272,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set align' called on an object that is not a valid instance of HTMLEmbedElement.");
}
V = conversions["DOMString"](V, {
@@ -291,7 +291,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get name' called on an object that is not a valid instance of HTMLEmbedElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -307,7 +307,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set name' called on an object that is not a valid instance of HTMLEmbedElement.");
}
V = conversions["DOMString"](V, {

View File

@@ -102,7 +102,7 @@ exports.install = (globalObject, globalNames) => {
checkValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLFieldSetElement.");
}
return esValue[implSymbol].checkValidity();
@@ -111,7 +111,9 @@ exports.install = (globalObject, globalNames) => {
reportValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'reportValidity' called on an object that is not a valid instance of HTMLFieldSetElement."
);
}
return esValue[implSymbol].reportValidity();
@@ -120,7 +122,9 @@ exports.install = (globalObject, globalNames) => {
setCustomValidity(error) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'setCustomValidity' called on an object that is not a valid instance of HTMLFieldSetElement."
);
}
if (arguments.length < 1) {
@@ -145,7 +149,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get disabled' called on an object that is not a valid instance of HTMLFieldSetElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -160,7 +164,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set disabled' called on an object that is not a valid instance of HTMLFieldSetElement.");
}
V = conversions["boolean"](V, {
@@ -183,7 +187,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get form' called on an object that is not a valid instance of HTMLFieldSetElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
@@ -193,7 +197,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get name' called on an object that is not a valid instance of HTMLFieldSetElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -209,7 +213,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set name' called on an object that is not a valid instance of HTMLFieldSetElement.");
}
V = conversions["DOMString"](V, {
@@ -228,7 +232,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get type' called on an object that is not a valid instance of HTMLFieldSetElement.");
}
return esValue[implSymbol]["type"];
@@ -238,7 +242,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get elements' called on an object that is not a valid instance of HTMLFieldSetElement.");
}
return utils.getSameObject(this, "elements", () => {
@@ -250,7 +254,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get willValidate' called on an object that is not a valid instance of HTMLFieldSetElement."
);
}
return esValue[implSymbol]["willValidate"];
@@ -260,7 +266,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get validity' called on an object that is not a valid instance of HTMLFieldSetElement.");
}
return utils.getSameObject(this, "validity", () => {
@@ -272,7 +278,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get validationMessage' called on an object that is not a valid instance of HTMLFieldSetElement."
);
}
return esValue[implSymbol]["validationMessage"];

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get color' called on an object that is not a valid instance of HTMLFontElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -119,7 +119,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set color' called on an object that is not a valid instance of HTMLFontElement.");
}
V = conversions["DOMString"](V, {
@@ -139,7 +139,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get face' called on an object that is not a valid instance of HTMLFontElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -155,7 +155,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set face' called on an object that is not a valid instance of HTMLFontElement.");
}
V = conversions["DOMString"](V, {
@@ -174,7 +174,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get size' called on an object that is not a valid instance of HTMLFontElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -190,7 +190,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set size' called on an object that is not a valid instance of HTMLFontElement.");
}
V = conversions["DOMString"](V, {

View File

@@ -102,7 +102,7 @@ exports.install = (globalObject, globalNames) => {
submit() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'submit' called on an object that is not a valid instance of HTMLFormElement.");
}
return esValue[implSymbol].submit();
@@ -111,7 +111,7 @@ exports.install = (globalObject, globalNames) => {
requestSubmit() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'requestSubmit' called on an object that is not a valid instance of HTMLFormElement.");
}
const args = [];
{
@@ -129,7 +129,7 @@ exports.install = (globalObject, globalNames) => {
reset() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'reset' called on an object that is not a valid instance of HTMLFormElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -143,7 +143,7 @@ exports.install = (globalObject, globalNames) => {
checkValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLFormElement.");
}
return esValue[implSymbol].checkValidity();
@@ -152,7 +152,7 @@ exports.install = (globalObject, globalNames) => {
reportValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'reportValidity' called on an object that is not a valid instance of HTMLFormElement.");
}
return esValue[implSymbol].reportValidity();
@@ -162,7 +162,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get acceptCharset' called on an object that is not a valid instance of HTMLFormElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -178,7 +178,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set acceptCharset' called on an object that is not a valid instance of HTMLFormElement.");
}
V = conversions["DOMString"](V, {
@@ -197,7 +197,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get action' called on an object that is not a valid instance of HTMLFormElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -212,7 +212,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set action' called on an object that is not a valid instance of HTMLFormElement.");
}
V = conversions["USVString"](V, {
@@ -231,7 +231,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get enctype' called on an object that is not a valid instance of HTMLFormElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -246,7 +246,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set enctype' called on an object that is not a valid instance of HTMLFormElement.");
}
V = conversions["DOMString"](V, {
@@ -265,7 +265,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get method' called on an object that is not a valid instance of HTMLFormElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -280,7 +280,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set method' called on an object that is not a valid instance of HTMLFormElement.");
}
V = conversions["DOMString"](V, {
@@ -299,7 +299,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get name' called on an object that is not a valid instance of HTMLFormElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -315,7 +315,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set name' called on an object that is not a valid instance of HTMLFormElement.");
}
V = conversions["DOMString"](V, {
@@ -334,7 +334,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get noValidate' called on an object that is not a valid instance of HTMLFormElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -349,7 +349,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set noValidate' called on an object that is not a valid instance of HTMLFormElement.");
}
V = conversions["boolean"](V, {
@@ -372,7 +372,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get target' called on an object that is not a valid instance of HTMLFormElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -388,7 +388,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set target' called on an object that is not a valid instance of HTMLFormElement.");
}
V = conversions["DOMString"](V, {
@@ -407,7 +407,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get elements' called on an object that is not a valid instance of HTMLFormElement.");
}
return utils.getSameObject(this, "elements", () => {
@@ -419,7 +419,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get length' called on an object that is not a valid instance of HTMLFormElement.");
}
return esValue[implSymbol]["length"];

View File

@@ -106,7 +106,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get name' called on an object that is not a valid instance of HTMLFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -122,7 +122,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set name' called on an object that is not a valid instance of HTMLFrameElement.");
}
V = conversions["DOMString"](V, {
@@ -141,7 +141,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get scrolling' called on an object that is not a valid instance of HTMLFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -157,7 +157,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set scrolling' called on an object that is not a valid instance of HTMLFrameElement.");
}
V = conversions["DOMString"](V, {
@@ -176,7 +176,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get src' called on an object that is not a valid instance of HTMLFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -202,7 +202,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set src' called on an object that is not a valid instance of HTMLFrameElement.");
}
V = conversions["USVString"](V, {
@@ -221,7 +221,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get frameBorder' called on an object that is not a valid instance of HTMLFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -237,7 +237,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set frameBorder' called on an object that is not a valid instance of HTMLFrameElement.");
}
V = conversions["DOMString"](V, {
@@ -256,7 +256,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get longDesc' called on an object that is not a valid instance of HTMLFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -282,7 +282,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set longDesc' called on an object that is not a valid instance of HTMLFrameElement.");
}
V = conversions["USVString"](V, {
@@ -301,7 +301,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get noResize' called on an object that is not a valid instance of HTMLFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -316,7 +316,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set noResize' called on an object that is not a valid instance of HTMLFrameElement.");
}
V = conversions["boolean"](V, {
@@ -339,7 +339,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get contentDocument' called on an object that is not a valid instance of HTMLFrameElement."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["contentDocument"]);
@@ -349,7 +351,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get contentWindow' called on an object that is not a valid instance of HTMLFrameElement."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["contentWindow"]);
@@ -359,7 +363,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get marginHeight' called on an object that is not a valid instance of HTMLFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -375,7 +379,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set marginHeight' called on an object that is not a valid instance of HTMLFrameElement.");
}
V = conversions["DOMString"](V, {
@@ -395,7 +399,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get marginWidth' called on an object that is not a valid instance of HTMLFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -411,7 +415,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set marginWidth' called on an object that is not a valid instance of HTMLFrameElement.");
}
V = conversions["DOMString"](V, {

View File

@@ -6,6 +6,8 @@ const utils = require("./utils.js");
const HTMLConstructor_helpers_html_constructor = require("../helpers/html-constructor.js").HTMLConstructor;
const ceReactionsPreSteps_helpers_custom_elements = require("../helpers/custom-elements.js").ceReactionsPreSteps;
const ceReactionsPostSteps_helpers_custom_elements = require("../helpers/custom-elements.js").ceReactionsPostSteps;
const EventHandlerNonNull = require("./EventHandlerNonNull.js");
const OnBeforeUnloadEventHandlerNonNull = require("./OnBeforeUnloadEventHandlerNonNull.js");
const implSymbol = utils.implSymbol;
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
const HTMLElement = require("./HTMLElement.js");
@@ -103,7 +105,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get cols' called on an object that is not a valid instance of HTMLFrameSetElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -119,7 +121,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set cols' called on an object that is not a valid instance of HTMLFrameSetElement.");
}
V = conversions["DOMString"](V, {
@@ -138,7 +140,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get rows' called on an object that is not a valid instance of HTMLFrameSetElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -154,7 +156,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set rows' called on an object that is not a valid instance of HTMLFrameSetElement.");
}
V = conversions["DOMString"](V, {
@@ -173,7 +175,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get onafterprint' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onafterprint"]);
@@ -183,11 +187,18 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set onafterprint' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onafterprint' property on 'HTMLFrameSetElement': The provided value"
});
}
esValue[implSymbol]["onafterprint"] = V;
}
@@ -195,7 +206,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get onbeforeprint' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeprint"]);
@@ -205,11 +218,18 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set onbeforeprint' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onbeforeprint' property on 'HTMLFrameSetElement': The provided value"
});
}
esValue[implSymbol]["onbeforeprint"] = V;
}
@@ -217,7 +237,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get onbeforeunload' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onbeforeunload"]);
@@ -227,11 +249,18 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set onbeforeunload' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = OnBeforeUnloadEventHandlerNonNull.convert(V, {
context: "Failed to set the 'onbeforeunload' property on 'HTMLFrameSetElement': The provided value"
});
}
esValue[implSymbol]["onbeforeunload"] = V;
}
@@ -239,7 +268,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get onhashchange' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onhashchange"]);
@@ -249,11 +280,18 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set onhashchange' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onhashchange' property on 'HTMLFrameSetElement': The provided value"
});
}
esValue[implSymbol]["onhashchange"] = V;
}
@@ -261,7 +299,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get onlanguagechange' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onlanguagechange"]);
@@ -271,11 +311,18 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set onlanguagechange' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onlanguagechange' property on 'HTMLFrameSetElement': The provided value"
});
}
esValue[implSymbol]["onlanguagechange"] = V;
}
@@ -283,7 +330,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get onmessage' called on an object that is not a valid instance of HTMLFrameSetElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onmessage"]);
@@ -293,11 +340,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set onmessage' called on an object that is not a valid instance of HTMLFrameSetElement.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onmessage' property on 'HTMLFrameSetElement': The provided value"
});
}
esValue[implSymbol]["onmessage"] = V;
}
@@ -305,7 +357,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get onmessageerror' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onmessageerror"]);
@@ -315,11 +369,18 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set onmessageerror' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onmessageerror' property on 'HTMLFrameSetElement': The provided value"
});
}
esValue[implSymbol]["onmessageerror"] = V;
}
@@ -327,7 +388,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get onoffline' called on an object that is not a valid instance of HTMLFrameSetElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onoffline"]);
@@ -337,11 +398,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set onoffline' called on an object that is not a valid instance of HTMLFrameSetElement.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onoffline' property on 'HTMLFrameSetElement': The provided value"
});
}
esValue[implSymbol]["onoffline"] = V;
}
@@ -349,7 +415,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get ononline' called on an object that is not a valid instance of HTMLFrameSetElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["ononline"]);
@@ -359,11 +425,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set ononline' called on an object that is not a valid instance of HTMLFrameSetElement.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'ononline' property on 'HTMLFrameSetElement': The provided value"
});
}
esValue[implSymbol]["ononline"] = V;
}
@@ -371,7 +442,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get onpagehide' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onpagehide"]);
@@ -381,11 +454,18 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set onpagehide' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onpagehide' property on 'HTMLFrameSetElement': The provided value"
});
}
esValue[implSymbol]["onpagehide"] = V;
}
@@ -393,7 +473,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get onpageshow' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onpageshow"]);
@@ -403,11 +485,18 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set onpageshow' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onpageshow' property on 'HTMLFrameSetElement': The provided value"
});
}
esValue[implSymbol]["onpageshow"] = V;
}
@@ -415,7 +504,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get onpopstate' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onpopstate"]);
@@ -425,11 +516,18 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set onpopstate' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onpopstate' property on 'HTMLFrameSetElement': The provided value"
});
}
esValue[implSymbol]["onpopstate"] = V;
}
@@ -437,7 +535,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get onrejectionhandled' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onrejectionhandled"]);
@@ -447,11 +547,18 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set onrejectionhandled' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onrejectionhandled' property on 'HTMLFrameSetElement': The provided value"
});
}
esValue[implSymbol]["onrejectionhandled"] = V;
}
@@ -459,7 +566,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get onstorage' called on an object that is not a valid instance of HTMLFrameSetElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onstorage"]);
@@ -469,11 +576,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set onstorage' called on an object that is not a valid instance of HTMLFrameSetElement.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onstorage' property on 'HTMLFrameSetElement': The provided value"
});
}
esValue[implSymbol]["onstorage"] = V;
}
@@ -481,7 +593,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get onunhandledrejection' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onunhandledrejection"]);
@@ -491,11 +605,18 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set onunhandledrejection' called on an object that is not a valid instance of HTMLFrameSetElement."
);
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onunhandledrejection' property on 'HTMLFrameSetElement': The provided value"
});
}
esValue[implSymbol]["onunhandledrejection"] = V;
}
@@ -503,7 +624,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get onunload' called on an object that is not a valid instance of HTMLFrameSetElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["onunload"]);
@@ -513,11 +634,16 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set onunload' called on an object that is not a valid instance of HTMLFrameSetElement.");
}
V = utils.tryImplForWrapper(V);
if (!utils.isObject(V)) {
V = null;
} else {
V = EventHandlerNonNull.convert(V, {
context: "Failed to set the 'onunload' property on 'HTMLFrameSetElement': The provided value"
});
}
esValue[implSymbol]["onunload"] = V;
}
}

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get align' called on an object that is not a valid instance of HTMLHRElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -119,7 +119,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set align' called on an object that is not a valid instance of HTMLHRElement.");
}
V = conversions["DOMString"](V, {
@@ -138,7 +138,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get color' called on an object that is not a valid instance of HTMLHRElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -154,7 +154,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set color' called on an object that is not a valid instance of HTMLHRElement.");
}
V = conversions["DOMString"](V, {
@@ -173,7 +173,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get noShade' called on an object that is not a valid instance of HTMLHRElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -188,7 +188,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set noShade' called on an object that is not a valid instance of HTMLHRElement.");
}
V = conversions["boolean"](V, {
@@ -211,7 +211,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get size' called on an object that is not a valid instance of HTMLHRElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -227,7 +227,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set size' called on an object that is not a valid instance of HTMLHRElement.");
}
V = conversions["DOMString"](V, {
@@ -246,7 +246,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get width' called on an object that is not a valid instance of HTMLHRElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -262,7 +262,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set width' called on an object that is not a valid instance of HTMLHRElement.");
}
V = conversions["DOMString"](V, {

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get align' called on an object that is not a valid instance of HTMLHeadingElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -119,7 +119,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set align' called on an object that is not a valid instance of HTMLHeadingElement.");
}
V = conversions["DOMString"](V, {

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get version' called on an object that is not a valid instance of HTMLHtmlElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -119,7 +119,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set version' called on an object that is not a valid instance of HTMLHtmlElement.");
}
V = conversions["DOMString"](V, {

View File

@@ -105,7 +105,7 @@ exports.install = (globalObject, globalNames) => {
getSVGDocument() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'getSVGDocument' called on an object that is not a valid instance of HTMLIFrameElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol].getSVGDocument());
@@ -115,7 +115,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get src' called on an object that is not a valid instance of HTMLIFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -141,7 +141,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set src' called on an object that is not a valid instance of HTMLIFrameElement.");
}
V = conversions["USVString"](V, {
@@ -160,7 +160,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get srcdoc' called on an object that is not a valid instance of HTMLIFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -176,7 +176,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set srcdoc' called on an object that is not a valid instance of HTMLIFrameElement.");
}
V = conversions["DOMString"](V, {
@@ -195,7 +195,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get name' called on an object that is not a valid instance of HTMLIFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -211,7 +211,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set name' called on an object that is not a valid instance of HTMLIFrameElement.");
}
V = conversions["DOMString"](V, {
@@ -230,7 +230,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get allowFullscreen' called on an object that is not a valid instance of HTMLIFrameElement."
);
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -245,7 +247,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set allowFullscreen' called on an object that is not a valid instance of HTMLIFrameElement."
);
}
V = conversions["boolean"](V, {
@@ -268,7 +272,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get width' called on an object that is not a valid instance of HTMLIFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -284,7 +288,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set width' called on an object that is not a valid instance of HTMLIFrameElement.");
}
V = conversions["DOMString"](V, {
@@ -303,7 +307,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get height' called on an object that is not a valid instance of HTMLIFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -319,7 +323,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set height' called on an object that is not a valid instance of HTMLIFrameElement.");
}
V = conversions["DOMString"](V, {
@@ -338,7 +342,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get contentDocument' called on an object that is not a valid instance of HTMLIFrameElement."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["contentDocument"]);
@@ -348,7 +354,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get contentWindow' called on an object that is not a valid instance of HTMLIFrameElement."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["contentWindow"]);
@@ -358,7 +366,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get align' called on an object that is not a valid instance of HTMLIFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -374,7 +382,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set align' called on an object that is not a valid instance of HTMLIFrameElement.");
}
V = conversions["DOMString"](V, {
@@ -393,7 +401,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get scrolling' called on an object that is not a valid instance of HTMLIFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -409,7 +417,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set scrolling' called on an object that is not a valid instance of HTMLIFrameElement.");
}
V = conversions["DOMString"](V, {
@@ -428,7 +436,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get frameBorder' called on an object that is not a valid instance of HTMLIFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -444,7 +452,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set frameBorder' called on an object that is not a valid instance of HTMLIFrameElement.");
}
V = conversions["DOMString"](V, {
@@ -463,7 +471,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get longDesc' called on an object that is not a valid instance of HTMLIFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -489,7 +497,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set longDesc' called on an object that is not a valid instance of HTMLIFrameElement.");
}
V = conversions["USVString"](V, {
@@ -508,7 +516,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get marginHeight' called on an object that is not a valid instance of HTMLIFrameElement."
);
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -524,7 +534,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set marginHeight' called on an object that is not a valid instance of HTMLIFrameElement."
);
}
V = conversions["DOMString"](V, {
@@ -544,7 +556,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get marginWidth' called on an object that is not a valid instance of HTMLIFrameElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -560,7 +572,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set marginWidth' called on an object that is not a valid instance of HTMLIFrameElement.");
}
V = conversions["DOMString"](V, {

View File

@@ -107,7 +107,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get alt' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -123,7 +123,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set alt' called on an object that is not a valid instance of HTMLImageElement.");
}
V = conversions["DOMString"](V, {
@@ -142,7 +142,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get src' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -168,7 +168,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set src' called on an object that is not a valid instance of HTMLImageElement.");
}
V = conversions["USVString"](V, {
@@ -187,7 +187,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get srcset' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -203,7 +203,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set srcset' called on an object that is not a valid instance of HTMLImageElement.");
}
V = conversions["USVString"](V, {
@@ -222,7 +222,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get sizes' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -238,7 +238,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set sizes' called on an object that is not a valid instance of HTMLImageElement.");
}
V = conversions["DOMString"](V, {
@@ -257,7 +257,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get crossOrigin' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -273,7 +273,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set crossOrigin' called on an object that is not a valid instance of HTMLImageElement.");
}
if (V === null || V === undefined) {
@@ -296,7 +296,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get useMap' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -312,7 +312,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set useMap' called on an object that is not a valid instance of HTMLImageElement.");
}
V = conversions["DOMString"](V, {
@@ -331,7 +331,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get isMap' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -346,7 +346,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set isMap' called on an object that is not a valid instance of HTMLImageElement.");
}
V = conversions["boolean"](V, {
@@ -369,7 +369,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get width' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -384,7 +384,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set width' called on an object that is not a valid instance of HTMLImageElement.");
}
V = conversions["unsigned long"](V, {
@@ -403,7 +403,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get height' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -418,7 +418,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set height' called on an object that is not a valid instance of HTMLImageElement.");
}
V = conversions["unsigned long"](V, {
@@ -437,7 +437,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get naturalWidth' called on an object that is not a valid instance of HTMLImageElement.");
}
return esValue[implSymbol]["naturalWidth"];
@@ -447,7 +447,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get naturalHeight' called on an object that is not a valid instance of HTMLImageElement."
);
}
return esValue[implSymbol]["naturalHeight"];
@@ -457,7 +459,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get complete' called on an object that is not a valid instance of HTMLImageElement.");
}
return esValue[implSymbol]["complete"];
@@ -467,7 +469,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get currentSrc' called on an object that is not a valid instance of HTMLImageElement.");
}
return esValue[implSymbol]["currentSrc"];
@@ -477,7 +479,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get name' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -493,7 +495,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set name' called on an object that is not a valid instance of HTMLImageElement.");
}
V = conversions["DOMString"](V, {
@@ -512,7 +514,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get lowsrc' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -538,7 +540,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set lowsrc' called on an object that is not a valid instance of HTMLImageElement.");
}
V = conversions["USVString"](V, {
@@ -557,7 +559,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get align' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -573,7 +575,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set align' called on an object that is not a valid instance of HTMLImageElement.");
}
V = conversions["DOMString"](V, {
@@ -592,7 +594,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get hspace' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -612,7 +614,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set hspace' called on an object that is not a valid instance of HTMLImageElement.");
}
V = conversions["unsigned long"](V, {
@@ -632,7 +634,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get vspace' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -652,7 +654,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set vspace' called on an object that is not a valid instance of HTMLImageElement.");
}
V = conversions["unsigned long"](V, {
@@ -672,7 +674,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get longDesc' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -698,7 +700,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set longDesc' called on an object that is not a valid instance of HTMLImageElement.");
}
V = conversions["USVString"](V, {
@@ -717,7 +719,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get border' called on an object that is not a valid instance of HTMLImageElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -733,7 +735,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set border' called on an object that is not a valid instance of HTMLImageElement.");
}
V = conversions["DOMString"](V, {

View File

@@ -107,7 +107,7 @@ exports.install = (globalObject, globalNames) => {
stepUp() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'stepUp' called on an object that is not a valid instance of HTMLInputElement.");
}
const args = [];
{
@@ -127,7 +127,7 @@ exports.install = (globalObject, globalNames) => {
stepDown() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'stepDown' called on an object that is not a valid instance of HTMLInputElement.");
}
const args = [];
{
@@ -147,7 +147,7 @@ exports.install = (globalObject, globalNames) => {
checkValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLInputElement.");
}
return esValue[implSymbol].checkValidity();
@@ -156,7 +156,7 @@ exports.install = (globalObject, globalNames) => {
reportValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'reportValidity' called on an object that is not a valid instance of HTMLInputElement.");
}
return esValue[implSymbol].reportValidity();
@@ -165,7 +165,9 @@ exports.install = (globalObject, globalNames) => {
setCustomValidity(error) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'setCustomValidity' called on an object that is not a valid instance of HTMLInputElement."
);
}
if (arguments.length < 1) {
@@ -189,7 +191,7 @@ exports.install = (globalObject, globalNames) => {
select() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'select' called on an object that is not a valid instance of HTMLInputElement.");
}
return esValue[implSymbol].select();
@@ -198,7 +200,7 @@ exports.install = (globalObject, globalNames) => {
setRangeText(replacement) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'setRangeText' called on an object that is not a valid instance of HTMLInputElement.");
}
if (arguments.length < 1) {
@@ -287,7 +289,9 @@ exports.install = (globalObject, globalNames) => {
setSelectionRange(start, end) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'setSelectionRange' called on an object that is not a valid instance of HTMLInputElement."
);
}
if (arguments.length < 2) {
@@ -328,7 +332,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get accept' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -344,7 +348,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set accept' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["DOMString"](V, {
@@ -363,7 +367,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get alt' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -379,7 +383,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set alt' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["DOMString"](V, {
@@ -398,7 +402,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get autocomplete' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -414,7 +418,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set autocomplete' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["DOMString"](V, {
@@ -433,7 +437,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get autofocus' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -448,7 +452,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set autofocus' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["boolean"](V, {
@@ -471,7 +475,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get defaultChecked' called on an object that is not a valid instance of HTMLInputElement."
);
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -486,7 +492,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set defaultChecked' called on an object that is not a valid instance of HTMLInputElement."
);
}
V = conversions["boolean"](V, {
@@ -509,7 +517,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get checked' called on an object that is not a valid instance of HTMLInputElement.");
}
return esValue[implSymbol]["checked"];
@@ -519,7 +527,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set checked' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["boolean"](V, {
@@ -533,7 +541,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get dirName' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -549,7 +557,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set dirName' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["DOMString"](V, {
@@ -568,7 +576,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get disabled' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -583,7 +591,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set disabled' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["boolean"](V, {
@@ -606,7 +614,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get form' called on an object that is not a valid instance of HTMLInputElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
@@ -616,7 +624,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get files' called on an object that is not a valid instance of HTMLInputElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["files"]);
@@ -626,7 +634,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set files' called on an object that is not a valid instance of HTMLInputElement.");
}
if (V === null || V === undefined) {
@@ -643,7 +651,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get formNoValidate' called on an object that is not a valid instance of HTMLInputElement."
);
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -658,7 +668,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set formNoValidate' called on an object that is not a valid instance of HTMLInputElement."
);
}
V = conversions["boolean"](V, {
@@ -681,7 +693,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get formTarget' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -697,7 +709,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set formTarget' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["DOMString"](V, {
@@ -716,7 +728,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get indeterminate' called on an object that is not a valid instance of HTMLInputElement."
);
}
return esValue[implSymbol]["indeterminate"];
@@ -726,7 +740,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set indeterminate' called on an object that is not a valid instance of HTMLInputElement."
);
}
V = conversions["boolean"](V, {
@@ -740,7 +756,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get inputMode' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -756,7 +772,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set inputMode' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["DOMString"](V, {
@@ -775,7 +791,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get list' called on an object that is not a valid instance of HTMLInputElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["list"]);
@@ -785,7 +801,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get max' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -801,7 +817,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set max' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["DOMString"](V, {
@@ -820,7 +836,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get maxLength' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -835,7 +851,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set maxLength' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["long"](V, {
@@ -854,7 +870,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get min' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -870,7 +886,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set min' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["DOMString"](V, {
@@ -889,7 +905,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get minLength' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -904,7 +920,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set minLength' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["long"](V, {
@@ -923,7 +939,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get multiple' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -938,7 +954,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set multiple' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["boolean"](V, {
@@ -961,7 +977,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get name' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -977,7 +993,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set name' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["DOMString"](V, {
@@ -996,7 +1012,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get pattern' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -1012,7 +1028,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set pattern' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["DOMString"](V, {
@@ -1031,7 +1047,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get placeholder' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -1047,7 +1063,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set placeholder' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["DOMString"](V, {
@@ -1066,7 +1082,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get readOnly' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -1081,7 +1097,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set readOnly' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["boolean"](V, {
@@ -1104,7 +1120,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get required' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -1119,7 +1135,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set required' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["boolean"](V, {
@@ -1142,7 +1158,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get size' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -1157,7 +1173,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set size' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["unsigned long"](V, {
@@ -1176,7 +1192,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get src' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -1202,7 +1218,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set src' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["USVString"](V, {
@@ -1221,7 +1237,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get step' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -1237,7 +1253,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set step' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["DOMString"](V, {
@@ -1256,7 +1272,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get type' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -1271,7 +1287,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set type' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["DOMString"](V, {
@@ -1290,7 +1306,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get defaultValue' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -1306,7 +1322,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set defaultValue' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["DOMString"](V, {
@@ -1325,7 +1341,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get value' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -1340,7 +1356,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set value' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["DOMString"](V, {
@@ -1360,7 +1376,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get valueAsDate' called on an object that is not a valid instance of HTMLInputElement.");
}
return esValue[implSymbol]["valueAsDate"];
@@ -1370,7 +1386,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set valueAsDate' called on an object that is not a valid instance of HTMLInputElement.");
}
if (V === null || V === undefined) {
@@ -1387,7 +1403,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get valueAsNumber' called on an object that is not a valid instance of HTMLInputElement."
);
}
return esValue[implSymbol]["valueAsNumber"];
@@ -1397,7 +1415,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set valueAsNumber' called on an object that is not a valid instance of HTMLInputElement."
);
}
V = conversions["unrestricted double"](V, {
@@ -1411,7 +1431,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get willValidate' called on an object that is not a valid instance of HTMLInputElement.");
}
return esValue[implSymbol]["willValidate"];
@@ -1421,7 +1441,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get validity' called on an object that is not a valid instance of HTMLInputElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
@@ -1431,7 +1451,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get validationMessage' called on an object that is not a valid instance of HTMLInputElement."
);
}
return esValue[implSymbol]["validationMessage"];
@@ -1441,7 +1463,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get labels' called on an object that is not a valid instance of HTMLInputElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);
@@ -1451,7 +1473,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get selectionStart' called on an object that is not a valid instance of HTMLInputElement."
);
}
return esValue[implSymbol]["selectionStart"];
@@ -1461,7 +1485,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set selectionStart' called on an object that is not a valid instance of HTMLInputElement."
);
}
if (V === null || V === undefined) {
@@ -1478,7 +1504,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get selectionEnd' called on an object that is not a valid instance of HTMLInputElement.");
}
return esValue[implSymbol]["selectionEnd"];
@@ -1488,7 +1514,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set selectionEnd' called on an object that is not a valid instance of HTMLInputElement.");
}
if (V === null || V === undefined) {
@@ -1505,7 +1531,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get selectionDirection' called on an object that is not a valid instance of HTMLInputElement."
);
}
return esValue[implSymbol]["selectionDirection"];
@@ -1515,7 +1543,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set selectionDirection' called on an object that is not a valid instance of HTMLInputElement."
);
}
if (V === null || V === undefined) {
@@ -1532,7 +1562,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get align' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -1548,7 +1578,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set align' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["DOMString"](V, {
@@ -1567,7 +1597,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get useMap' called on an object that is not a valid instance of HTMLInputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -1583,7 +1613,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set useMap' called on an object that is not a valid instance of HTMLInputElement.");
}
V = conversions["DOMString"](V, {

View File

@@ -104,7 +104,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get value' called on an object that is not a valid instance of HTMLLIElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -124,7 +124,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set value' called on an object that is not a valid instance of HTMLLIElement.");
}
V = conversions["long"](V, {
@@ -143,7 +143,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get type' called on an object that is not a valid instance of HTMLLIElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -159,7 +159,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set type' called on an object that is not a valid instance of HTMLLIElement.");
}
V = conversions["DOMString"](V, {

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get form' called on an object that is not a valid instance of HTMLLabelElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
@@ -113,7 +113,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get htmlFor' called on an object that is not a valid instance of HTMLLabelElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -129,7 +129,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set htmlFor' called on an object that is not a valid instance of HTMLLabelElement.");
}
V = conversions["DOMString"](V, {
@@ -148,7 +148,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get control' called on an object that is not a valid instance of HTMLLabelElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["control"]);

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get form' called on an object that is not a valid instance of HTMLLegendElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
@@ -113,7 +113,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get align' called on an object that is not a valid instance of HTMLLegendElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -129,7 +129,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set align' called on an object that is not a valid instance of HTMLLegendElement.");
}
V = conversions["DOMString"](V, {

View File

@@ -106,7 +106,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get href' called on an object that is not a valid instance of HTMLLinkElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -132,7 +132,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set href' called on an object that is not a valid instance of HTMLLinkElement.");
}
V = conversions["USVString"](V, {
@@ -151,7 +151,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get crossOrigin' called on an object that is not a valid instance of HTMLLinkElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -167,7 +167,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set crossOrigin' called on an object that is not a valid instance of HTMLLinkElement.");
}
if (V === null || V === undefined) {
@@ -190,7 +190,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get rel' called on an object that is not a valid instance of HTMLLinkElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -206,7 +206,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set rel' called on an object that is not a valid instance of HTMLLinkElement.");
}
V = conversions["DOMString"](V, {
@@ -225,7 +225,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get relList' called on an object that is not a valid instance of HTMLLinkElement.");
}
return utils.getSameObject(this, "relList", () => {
@@ -237,7 +237,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set relList' called on an object that is not a valid instance of HTMLLinkElement.");
}
const Q = esValue["relList"];
@@ -251,7 +251,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get media' called on an object that is not a valid instance of HTMLLinkElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -267,7 +267,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set media' called on an object that is not a valid instance of HTMLLinkElement.");
}
V = conversions["DOMString"](V, {
@@ -286,7 +286,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get hreflang' called on an object that is not a valid instance of HTMLLinkElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -302,7 +302,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set hreflang' called on an object that is not a valid instance of HTMLLinkElement.");
}
V = conversions["DOMString"](V, {
@@ -321,7 +321,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get type' called on an object that is not a valid instance of HTMLLinkElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -337,7 +337,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set type' called on an object that is not a valid instance of HTMLLinkElement.");
}
V = conversions["DOMString"](V, {
@@ -356,7 +356,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get charset' called on an object that is not a valid instance of HTMLLinkElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -372,7 +372,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set charset' called on an object that is not a valid instance of HTMLLinkElement.");
}
V = conversions["DOMString"](V, {
@@ -391,7 +391,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get rev' called on an object that is not a valid instance of HTMLLinkElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -407,7 +407,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set rev' called on an object that is not a valid instance of HTMLLinkElement.");
}
V = conversions["DOMString"](V, {
@@ -426,7 +426,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get target' called on an object that is not a valid instance of HTMLLinkElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -442,7 +442,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set target' called on an object that is not a valid instance of HTMLLinkElement.");
}
V = conversions["DOMString"](V, {
@@ -461,7 +461,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get sheet' called on an object that is not a valid instance of HTMLLinkElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["sheet"]);

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get name' called on an object that is not a valid instance of HTMLMapElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -119,7 +119,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set name' called on an object that is not a valid instance of HTMLMapElement.");
}
V = conversions["DOMString"](V, {
@@ -138,7 +138,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get areas' called on an object that is not a valid instance of HTMLMapElement.");
}
return utils.getSameObject(this, "areas", () => {

View File

@@ -104,7 +104,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get behavior' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -120,7 +120,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set behavior' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
V = conversions["DOMString"](V, {
@@ -139,7 +139,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get bgColor' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -155,7 +155,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set bgColor' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
V = conversions["DOMString"](V, {
@@ -174,7 +174,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get direction' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -190,7 +190,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set direction' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
V = conversions["DOMString"](V, {
@@ -209,7 +209,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get height' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -225,7 +225,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set height' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
V = conversions["DOMString"](V, {
@@ -244,7 +244,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get hspace' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -264,7 +264,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set hspace' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
V = conversions["unsigned long"](V, {
@@ -284,7 +284,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get scrollAmount' called on an object that is not a valid instance of HTMLMarqueeElement."
);
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -304,7 +306,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set scrollAmount' called on an object that is not a valid instance of HTMLMarqueeElement."
);
}
V = conversions["unsigned long"](V, {
@@ -324,7 +328,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get scrollDelay' called on an object that is not a valid instance of HTMLMarqueeElement."
);
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -344,7 +350,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set scrollDelay' called on an object that is not a valid instance of HTMLMarqueeElement."
);
}
V = conversions["unsigned long"](V, {
@@ -364,7 +372,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get trueSpeed' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -379,7 +387,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set trueSpeed' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
V = conversions["boolean"](V, {
@@ -402,7 +410,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get vspace' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -422,7 +430,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set vspace' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
V = conversions["unsigned long"](V, {
@@ -442,7 +450,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get width' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -458,7 +466,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set width' called on an object that is not a valid instance of HTMLMarqueeElement.");
}
V = conversions["DOMString"](V, {

View File

@@ -105,7 +105,7 @@ exports.install = (globalObject, globalNames) => {
load() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'load' called on an object that is not a valid instance of HTMLMediaElement.");
}
return esValue[implSymbol].load();
@@ -114,7 +114,7 @@ exports.install = (globalObject, globalNames) => {
canPlayType(type) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'canPlayType' called on an object that is not a valid instance of HTMLMediaElement.");
}
if (arguments.length < 1) {
@@ -139,7 +139,7 @@ exports.install = (globalObject, globalNames) => {
try {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'play' called on an object that is not a valid instance of HTMLMediaElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol].play());
@@ -151,7 +151,7 @@ exports.install = (globalObject, globalNames) => {
pause() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'pause' called on an object that is not a valid instance of HTMLMediaElement.");
}
return esValue[implSymbol].pause();
@@ -160,7 +160,7 @@ exports.install = (globalObject, globalNames) => {
addTextTrack(kind) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'addTextTrack' called on an object that is not a valid instance of HTMLMediaElement.");
}
if (arguments.length < 1) {
@@ -207,7 +207,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get src' called on an object that is not a valid instance of HTMLMediaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -233,7 +233,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set src' called on an object that is not a valid instance of HTMLMediaElement.");
}
V = conversions["USVString"](V, {
@@ -252,7 +252,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get currentSrc' called on an object that is not a valid instance of HTMLMediaElement.");
}
return esValue[implSymbol]["currentSrc"];
@@ -262,7 +262,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get crossOrigin' called on an object that is not a valid instance of HTMLMediaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -278,7 +278,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set crossOrigin' called on an object that is not a valid instance of HTMLMediaElement.");
}
if (V === null || V === undefined) {
@@ -301,7 +301,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get networkState' called on an object that is not a valid instance of HTMLMediaElement.");
}
return esValue[implSymbol]["networkState"];
@@ -311,7 +311,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get preload' called on an object that is not a valid instance of HTMLMediaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -327,7 +327,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set preload' called on an object that is not a valid instance of HTMLMediaElement.");
}
V = conversions["DOMString"](V, {
@@ -346,7 +346,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get buffered' called on an object that is not a valid instance of HTMLMediaElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["buffered"]);
@@ -356,7 +356,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get readyState' called on an object that is not a valid instance of HTMLMediaElement.");
}
return esValue[implSymbol]["readyState"];
@@ -366,7 +366,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get seeking' called on an object that is not a valid instance of HTMLMediaElement.");
}
return esValue[implSymbol]["seeking"];
@@ -376,7 +376,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get currentTime' called on an object that is not a valid instance of HTMLMediaElement.");
}
return esValue[implSymbol]["currentTime"];
@@ -386,7 +386,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set currentTime' called on an object that is not a valid instance of HTMLMediaElement.");
}
V = conversions["double"](V, {
@@ -400,7 +400,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get duration' called on an object that is not a valid instance of HTMLMediaElement.");
}
return esValue[implSymbol]["duration"];
@@ -410,7 +410,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get paused' called on an object that is not a valid instance of HTMLMediaElement.");
}
return esValue[implSymbol]["paused"];
@@ -420,7 +420,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get defaultPlaybackRate' called on an object that is not a valid instance of HTMLMediaElement."
);
}
return esValue[implSymbol]["defaultPlaybackRate"];
@@ -430,7 +432,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set defaultPlaybackRate' called on an object that is not a valid instance of HTMLMediaElement."
);
}
V = conversions["double"](V, {
@@ -444,7 +448,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get playbackRate' called on an object that is not a valid instance of HTMLMediaElement.");
}
return esValue[implSymbol]["playbackRate"];
@@ -454,7 +458,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set playbackRate' called on an object that is not a valid instance of HTMLMediaElement.");
}
V = conversions["double"](V, {
@@ -468,7 +472,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get played' called on an object that is not a valid instance of HTMLMediaElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["played"]);
@@ -478,7 +482,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get seekable' called on an object that is not a valid instance of HTMLMediaElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["seekable"]);
@@ -488,7 +492,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get ended' called on an object that is not a valid instance of HTMLMediaElement.");
}
return esValue[implSymbol]["ended"];
@@ -498,7 +502,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get autoplay' called on an object that is not a valid instance of HTMLMediaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -513,7 +517,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set autoplay' called on an object that is not a valid instance of HTMLMediaElement.");
}
V = conversions["boolean"](V, {
@@ -536,7 +540,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get loop' called on an object that is not a valid instance of HTMLMediaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -551,7 +555,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set loop' called on an object that is not a valid instance of HTMLMediaElement.");
}
V = conversions["boolean"](V, {
@@ -574,7 +578,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get controls' called on an object that is not a valid instance of HTMLMediaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -589,7 +593,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set controls' called on an object that is not a valid instance of HTMLMediaElement.");
}
V = conversions["boolean"](V, {
@@ -612,7 +616,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get volume' called on an object that is not a valid instance of HTMLMediaElement.");
}
return esValue[implSymbol]["volume"];
@@ -622,7 +626,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set volume' called on an object that is not a valid instance of HTMLMediaElement.");
}
V = conversions["double"](V, {
@@ -636,7 +640,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get muted' called on an object that is not a valid instance of HTMLMediaElement.");
}
return esValue[implSymbol]["muted"];
@@ -646,7 +650,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set muted' called on an object that is not a valid instance of HTMLMediaElement.");
}
V = conversions["boolean"](V, {
@@ -660,7 +664,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get defaultMuted' called on an object that is not a valid instance of HTMLMediaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -675,7 +679,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set defaultMuted' called on an object that is not a valid instance of HTMLMediaElement.");
}
V = conversions["boolean"](V, {
@@ -698,7 +702,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get audioTracks' called on an object that is not a valid instance of HTMLMediaElement.");
}
return utils.getSameObject(this, "audioTracks", () => {
@@ -710,7 +714,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get videoTracks' called on an object that is not a valid instance of HTMLMediaElement.");
}
return utils.getSameObject(this, "videoTracks", () => {
@@ -722,7 +726,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get textTracks' called on an object that is not a valid instance of HTMLMediaElement.");
}
return utils.getSameObject(this, "textTracks", () => {

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get compact' called on an object that is not a valid instance of HTMLMenuElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -118,7 +118,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set compact' called on an object that is not a valid instance of HTMLMenuElement.");
}
V = conversions["boolean"](V, {

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get name' called on an object that is not a valid instance of HTMLMetaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -119,7 +119,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set name' called on an object that is not a valid instance of HTMLMetaElement.");
}
V = conversions["DOMString"](V, {
@@ -138,7 +138,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get httpEquiv' called on an object that is not a valid instance of HTMLMetaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -154,7 +154,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set httpEquiv' called on an object that is not a valid instance of HTMLMetaElement.");
}
V = conversions["DOMString"](V, {
@@ -173,7 +173,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get content' called on an object that is not a valid instance of HTMLMetaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -189,7 +189,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set content' called on an object that is not a valid instance of HTMLMetaElement.");
}
V = conversions["DOMString"](V, {
@@ -208,7 +208,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get scheme' called on an object that is not a valid instance of HTMLMetaElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -224,7 +224,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set scheme' called on an object that is not a valid instance of HTMLMetaElement.");
}
V = conversions["DOMString"](V, {

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get value' called on an object that is not a valid instance of HTMLMeterElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -118,7 +118,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set value' called on an object that is not a valid instance of HTMLMeterElement.");
}
V = conversions["double"](V, {
@@ -137,7 +137,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get min' called on an object that is not a valid instance of HTMLMeterElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -152,7 +152,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set min' called on an object that is not a valid instance of HTMLMeterElement.");
}
V = conversions["double"](V, {
@@ -171,7 +171,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get max' called on an object that is not a valid instance of HTMLMeterElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -186,7 +186,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set max' called on an object that is not a valid instance of HTMLMeterElement.");
}
V = conversions["double"](V, {
@@ -205,7 +205,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get low' called on an object that is not a valid instance of HTMLMeterElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -220,7 +220,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set low' called on an object that is not a valid instance of HTMLMeterElement.");
}
V = conversions["double"](V, {
@@ -239,7 +239,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get high' called on an object that is not a valid instance of HTMLMeterElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -254,7 +254,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set high' called on an object that is not a valid instance of HTMLMeterElement.");
}
V = conversions["double"](V, {
@@ -273,7 +273,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get optimum' called on an object that is not a valid instance of HTMLMeterElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -288,7 +288,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set optimum' called on an object that is not a valid instance of HTMLMeterElement.");
}
V = conversions["double"](V, {
@@ -307,7 +307,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get labels' called on an object that is not a valid instance of HTMLMeterElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);

View File

@@ -106,7 +106,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get cite' called on an object that is not a valid instance of HTMLModElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -132,7 +132,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set cite' called on an object that is not a valid instance of HTMLModElement.");
}
V = conversions["USVString"](V, {
@@ -151,7 +151,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get dateTime' called on an object that is not a valid instance of HTMLModElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -167,7 +167,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set dateTime' called on an object that is not a valid instance of HTMLModElement.");
}
V = conversions["DOMString"](V, {

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get reversed' called on an object that is not a valid instance of HTMLOListElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -118,7 +118,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set reversed' called on an object that is not a valid instance of HTMLOListElement.");
}
V = conversions["boolean"](V, {
@@ -141,7 +141,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get start' called on an object that is not a valid instance of HTMLOListElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -156,7 +156,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set start' called on an object that is not a valid instance of HTMLOListElement.");
}
V = conversions["long"](V, {
@@ -175,7 +175,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get type' called on an object that is not a valid instance of HTMLOListElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -191,7 +191,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set type' called on an object that is not a valid instance of HTMLOListElement.");
}
V = conversions["DOMString"](V, {
@@ -210,7 +210,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get compact' called on an object that is not a valid instance of HTMLOListElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -225,7 +225,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set compact' called on an object that is not a valid instance of HTMLOListElement.");
}
V = conversions["boolean"](V, {

View File

@@ -106,7 +106,7 @@ exports.install = (globalObject, globalNames) => {
checkValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLObjectElement.");
}
return esValue[implSymbol].checkValidity();
@@ -115,7 +115,7 @@ exports.install = (globalObject, globalNames) => {
reportValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'reportValidity' called on an object that is not a valid instance of HTMLObjectElement.");
}
return esValue[implSymbol].reportValidity();
@@ -124,7 +124,9 @@ exports.install = (globalObject, globalNames) => {
setCustomValidity(error) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'setCustomValidity' called on an object that is not a valid instance of HTMLObjectElement."
);
}
if (arguments.length < 1) {
@@ -149,7 +151,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get data' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -175,7 +177,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set data' called on an object that is not a valid instance of HTMLObjectElement.");
}
V = conversions["USVString"](V, {
@@ -194,7 +196,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get type' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -210,7 +212,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set type' called on an object that is not a valid instance of HTMLObjectElement.");
}
V = conversions["DOMString"](V, {
@@ -229,7 +231,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get name' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -245,7 +247,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set name' called on an object that is not a valid instance of HTMLObjectElement.");
}
V = conversions["DOMString"](V, {
@@ -264,7 +266,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get useMap' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -280,7 +282,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set useMap' called on an object that is not a valid instance of HTMLObjectElement.");
}
V = conversions["DOMString"](V, {
@@ -299,7 +301,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get form' called on an object that is not a valid instance of HTMLObjectElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
@@ -309,7 +311,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get width' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -325,7 +327,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set width' called on an object that is not a valid instance of HTMLObjectElement.");
}
V = conversions["DOMString"](V, {
@@ -344,7 +346,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get height' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -360,7 +362,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set height' called on an object that is not a valid instance of HTMLObjectElement.");
}
V = conversions["DOMString"](V, {
@@ -379,7 +381,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get contentDocument' called on an object that is not a valid instance of HTMLObjectElement."
);
}
return utils.tryWrapperForImpl(esValue[implSymbol]["contentDocument"]);
@@ -389,7 +393,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get willValidate' called on an object that is not a valid instance of HTMLObjectElement."
);
}
return esValue[implSymbol]["willValidate"];
@@ -399,7 +405,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get validity' called on an object that is not a valid instance of HTMLObjectElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
@@ -409,7 +415,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get validationMessage' called on an object that is not a valid instance of HTMLObjectElement."
);
}
return esValue[implSymbol]["validationMessage"];
@@ -419,7 +427,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get align' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -435,7 +443,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set align' called on an object that is not a valid instance of HTMLObjectElement.");
}
V = conversions["DOMString"](V, {
@@ -454,7 +462,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get archive' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -470,7 +478,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set archive' called on an object that is not a valid instance of HTMLObjectElement.");
}
V = conversions["DOMString"](V, {
@@ -489,7 +497,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get code' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -505,7 +513,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set code' called on an object that is not a valid instance of HTMLObjectElement.");
}
V = conversions["DOMString"](V, {
@@ -524,7 +532,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get declare' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -539,7 +547,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set declare' called on an object that is not a valid instance of HTMLObjectElement.");
}
V = conversions["boolean"](V, {
@@ -562,7 +570,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get hspace' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -582,7 +590,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set hspace' called on an object that is not a valid instance of HTMLObjectElement.");
}
V = conversions["unsigned long"](V, {
@@ -602,7 +610,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get standby' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -618,7 +626,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set standby' called on an object that is not a valid instance of HTMLObjectElement.");
}
V = conversions["DOMString"](V, {
@@ -637,7 +645,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get vspace' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -657,7 +665,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set vspace' called on an object that is not a valid instance of HTMLObjectElement.");
}
V = conversions["unsigned long"](V, {
@@ -677,7 +685,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get codeBase' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -703,7 +711,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set codeBase' called on an object that is not a valid instance of HTMLObjectElement.");
}
V = conversions["DOMString"](V, {
@@ -722,7 +730,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get codeType' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -738,7 +746,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set codeType' called on an object that is not a valid instance of HTMLObjectElement.");
}
V = conversions["DOMString"](V, {
@@ -757,7 +765,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get border' called on an object that is not a valid instance of HTMLObjectElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -773,7 +781,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set border' called on an object that is not a valid instance of HTMLObjectElement.");
}
V = conversions["DOMString"](V, {

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get disabled' called on an object that is not a valid instance of HTMLOptGroupElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -118,7 +118,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set disabled' called on an object that is not a valid instance of HTMLOptGroupElement.");
}
V = conversions["boolean"](V, {
@@ -141,7 +141,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get label' called on an object that is not a valid instance of HTMLOptGroupElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -157,7 +157,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set label' called on an object that is not a valid instance of HTMLOptGroupElement.");
}
V = conversions["DOMString"](V, {

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get disabled' called on an object that is not a valid instance of HTMLOptionElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -118,7 +118,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set disabled' called on an object that is not a valid instance of HTMLOptionElement.");
}
V = conversions["boolean"](V, {
@@ -141,7 +141,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get form' called on an object that is not a valid instance of HTMLOptionElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
@@ -151,7 +151,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get label' called on an object that is not a valid instance of HTMLOptionElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -166,7 +166,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set label' called on an object that is not a valid instance of HTMLOptionElement.");
}
V = conversions["DOMString"](V, {
@@ -185,7 +185,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get defaultSelected' called on an object that is not a valid instance of HTMLOptionElement."
);
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -200,7 +202,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set defaultSelected' called on an object that is not a valid instance of HTMLOptionElement."
);
}
V = conversions["boolean"](V, {
@@ -223,7 +227,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get selected' called on an object that is not a valid instance of HTMLOptionElement.");
}
return esValue[implSymbol]["selected"];
@@ -233,7 +237,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set selected' called on an object that is not a valid instance of HTMLOptionElement.");
}
V = conversions["boolean"](V, {
@@ -247,7 +251,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get value' called on an object that is not a valid instance of HTMLOptionElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -262,7 +266,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set value' called on an object that is not a valid instance of HTMLOptionElement.");
}
V = conversions["DOMString"](V, {
@@ -281,7 +285,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get text' called on an object that is not a valid instance of HTMLOptionElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -296,7 +300,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set text' called on an object that is not a valid instance of HTMLOptionElement.");
}
V = conversions["DOMString"](V, {
@@ -315,7 +319,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get index' called on an object that is not a valid instance of HTMLOptionElement.");
}
return esValue[implSymbol]["index"];

View File

@@ -117,7 +117,7 @@ exports.install = (globalObject, globalNames) => {
add(element) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'add' called on an object that is not a valid instance of HTMLOptionsCollection.");
}
if (arguments.length < 1) {
@@ -173,7 +173,7 @@ exports.install = (globalObject, globalNames) => {
remove(index) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'remove' called on an object that is not a valid instance of HTMLOptionsCollection.");
}
if (arguments.length < 1) {
@@ -203,7 +203,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get length' called on an object that is not a valid instance of HTMLOptionsCollection.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -218,7 +218,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set length' called on an object that is not a valid instance of HTMLOptionsCollection.");
}
V = conversions["unsigned long"](V, {
@@ -237,7 +237,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get selectedIndex' called on an object that is not a valid instance of HTMLOptionsCollection."
);
}
return esValue[implSymbol]["selectedIndex"];
@@ -247,7 +249,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set selectedIndex' called on an object that is not a valid instance of HTMLOptionsCollection."
);
}
V = conversions["long"](V, {
@@ -377,7 +381,9 @@ class ProxyHandler {
if (typeof P === "symbol") {
return Reflect.set(target, P, V, receiver);
}
if (target === receiver) {
// The `receiver` argument refers to the Proxy exotic object or an object
// that inherits from it, whereas `target` refers to the Proxy target:
if (target[implSymbol][utils.wrapperSymbol] === receiver) {
const globalObject = this._globalObject;
if (utils.isArrayIndexPropName(P)) {
@@ -406,8 +412,6 @@ class ProxyHandler {
return true;
}
typeof P === "string" && !utils.isArrayIndexPropName(P);
}
let ownDesc;

View File

@@ -102,7 +102,7 @@ exports.install = (globalObject, globalNames) => {
checkValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'checkValidity' called on an object that is not a valid instance of HTMLOutputElement.");
}
return esValue[implSymbol].checkValidity();
@@ -111,7 +111,7 @@ exports.install = (globalObject, globalNames) => {
reportValidity() {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'reportValidity' called on an object that is not a valid instance of HTMLOutputElement.");
}
return esValue[implSymbol].reportValidity();
@@ -120,7 +120,9 @@ exports.install = (globalObject, globalNames) => {
setCustomValidity(error) {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'setCustomValidity' called on an object that is not a valid instance of HTMLOutputElement."
);
}
if (arguments.length < 1) {
@@ -145,7 +147,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get htmlFor' called on an object that is not a valid instance of HTMLOutputElement.");
}
return utils.getSameObject(this, "htmlFor", () => {
@@ -157,7 +159,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set htmlFor' called on an object that is not a valid instance of HTMLOutputElement.");
}
const Q = esValue["htmlFor"];
@@ -171,7 +173,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get form' called on an object that is not a valid instance of HTMLOutputElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["form"]);
@@ -181,7 +183,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get name' called on an object that is not a valid instance of HTMLOutputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -197,7 +199,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set name' called on an object that is not a valid instance of HTMLOutputElement.");
}
V = conversions["DOMString"](V, {
@@ -216,7 +218,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get type' called on an object that is not a valid instance of HTMLOutputElement.");
}
return esValue[implSymbol]["type"];
@@ -226,7 +228,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get defaultValue' called on an object that is not a valid instance of HTMLOutputElement."
);
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -241,7 +245,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'set defaultValue' called on an object that is not a valid instance of HTMLOutputElement."
);
}
V = conversions["DOMString"](V, {
@@ -260,7 +266,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get value' called on an object that is not a valid instance of HTMLOutputElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -275,7 +281,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set value' called on an object that is not a valid instance of HTMLOutputElement.");
}
V = conversions["DOMString"](V, {
@@ -294,7 +300,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get willValidate' called on an object that is not a valid instance of HTMLOutputElement."
);
}
return esValue[implSymbol]["willValidate"];
@@ -304,7 +312,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get validity' called on an object that is not a valid instance of HTMLOutputElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["validity"]);
@@ -314,7 +322,9 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError(
"'get validationMessage' called on an object that is not a valid instance of HTMLOutputElement."
);
}
return esValue[implSymbol]["validationMessage"];
@@ -324,7 +334,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get labels' called on an object that is not a valid instance of HTMLOutputElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get align' called on an object that is not a valid instance of HTMLParagraphElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -119,7 +119,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set align' called on an object that is not a valid instance of HTMLParagraphElement.");
}
V = conversions["DOMString"](V, {

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get name' called on an object that is not a valid instance of HTMLParamElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -119,7 +119,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set name' called on an object that is not a valid instance of HTMLParamElement.");
}
V = conversions["DOMString"](V, {
@@ -138,7 +138,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get value' called on an object that is not a valid instance of HTMLParamElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -154,7 +154,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set value' called on an object that is not a valid instance of HTMLParamElement.");
}
V = conversions["DOMString"](V, {
@@ -173,7 +173,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get type' called on an object that is not a valid instance of HTMLParamElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -189,7 +189,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set type' called on an object that is not a valid instance of HTMLParamElement.");
}
V = conversions["DOMString"](V, {
@@ -208,7 +208,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get valueType' called on an object that is not a valid instance of HTMLParamElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -224,7 +224,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set valueType' called on an object that is not a valid instance of HTMLParamElement.");
}
V = conversions["DOMString"](V, {

View File

@@ -104,7 +104,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get width' called on an object that is not a valid instance of HTMLPreElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -124,7 +124,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set width' called on an object that is not a valid instance of HTMLPreElement.");
}
V = conversions["long"](V, {

View File

@@ -103,7 +103,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get value' called on an object that is not a valid instance of HTMLProgressElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -118,7 +118,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set value' called on an object that is not a valid instance of HTMLProgressElement.");
}
V = conversions["double"](V, {
@@ -137,7 +137,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get max' called on an object that is not a valid instance of HTMLProgressElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -152,7 +152,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set max' called on an object that is not a valid instance of HTMLProgressElement.");
}
V = conversions["double"](V, {
@@ -171,7 +171,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get position' called on an object that is not a valid instance of HTMLProgressElement.");
}
return esValue[implSymbol]["position"];
@@ -181,7 +181,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get labels' called on an object that is not a valid instance of HTMLProgressElement.");
}
return utils.tryWrapperForImpl(esValue[implSymbol]["labels"]);

View File

@@ -106,7 +106,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get cite' called on an object that is not a valid instance of HTMLQuoteElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -132,7 +132,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set cite' called on an object that is not a valid instance of HTMLQuoteElement.");
}
V = conversions["USVString"](V, {

View File

@@ -106,7 +106,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get src' called on an object that is not a valid instance of HTMLScriptElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -132,7 +132,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set src' called on an object that is not a valid instance of HTMLScriptElement.");
}
V = conversions["USVString"](V, {
@@ -151,7 +151,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get type' called on an object that is not a valid instance of HTMLScriptElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -167,7 +167,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set type' called on an object that is not a valid instance of HTMLScriptElement.");
}
V = conversions["DOMString"](V, {
@@ -186,7 +186,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get defer' called on an object that is not a valid instance of HTMLScriptElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -201,7 +201,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set defer' called on an object that is not a valid instance of HTMLScriptElement.");
}
V = conversions["boolean"](V, {
@@ -224,7 +224,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get crossOrigin' called on an object that is not a valid instance of HTMLScriptElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -240,7 +240,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set crossOrigin' called on an object that is not a valid instance of HTMLScriptElement.");
}
if (V === null || V === undefined) {
@@ -263,7 +263,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get text' called on an object that is not a valid instance of HTMLScriptElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -278,7 +278,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set text' called on an object that is not a valid instance of HTMLScriptElement.");
}
V = conversions["DOMString"](V, {
@@ -297,7 +297,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get charset' called on an object that is not a valid instance of HTMLScriptElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -313,7 +313,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set charset' called on an object that is not a valid instance of HTMLScriptElement.");
}
V = conversions["DOMString"](V, {
@@ -332,7 +332,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get event' called on an object that is not a valid instance of HTMLScriptElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -348,7 +348,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set event' called on an object that is not a valid instance of HTMLScriptElement.");
}
V = conversions["DOMString"](V, {
@@ -367,7 +367,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'get htmlFor' called on an object that is not a valid instance of HTMLScriptElement.");
}
ceReactionsPreSteps_helpers_custom_elements(globalObject);
@@ -383,7 +383,7 @@ exports.install = (globalObject, globalNames) => {
const esValue = this !== null && this !== undefined ? this : globalObject;
if (!exports.is(esValue)) {
throw new TypeError("Illegal invocation");
throw new TypeError("'set htmlFor' called on an object that is not a valid instance of HTMLScriptElement.");
}
V = conversions["DOMString"](V, {

Some files were not shown because too many files have changed in this diff Show More