@depup/jsdom 30.1.1-depup.2 → 30.1.2-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -14
- package/changes.json +3 -28
- package/lib/generated/css-property-definitions.js +1130 -10853
- package/lib/generated/css-property-descriptors.js +28 -28
- package/lib/generated/css-property-metadata.js +864 -7813
- package/lib/generated/idl/AbortController.js +6 -13
- package/lib/generated/idl/AbortSignal.js +9 -34
- package/lib/generated/idl/AbstractRange.js +9 -35
- package/lib/generated/idl/Attr.js +12 -42
- package/lib/generated/idl/BarProp.js +5 -5
- package/lib/generated/idl/BeforeUnloadEvent.js +6 -13
- package/lib/generated/idl/Blob.js +10 -29
- package/lib/generated/idl/BlobEvent.js +6 -12
- package/lib/generated/idl/CSSConditionRule.js +5 -7
- package/lib/generated/idl/CSSContainerRule.js +6 -14
- package/lib/generated/idl/CSSCounterStyleRule.js +26 -143
- package/lib/generated/idl/CSSFontFaceRule.js +6 -14
- package/lib/generated/idl/CSSGroupingRule.js +7 -21
- package/lib/generated/idl/CSSImportRule.js +10 -42
- package/lib/generated/idl/CSSKeyframeRule.js +8 -27
- package/lib/generated/idl/CSSKeyframesRule.js +11 -48
- package/lib/generated/idl/CSSLayerBlockRule.js +5 -7
- package/lib/generated/idl/CSSLayerStatementRule.js +5 -7
- package/lib/generated/idl/CSSMediaRule.js +7 -21
- package/lib/generated/idl/CSSNamespaceRule.js +6 -14
- package/lib/generated/idl/CSSNestedDeclarations.js +6 -14
- package/lib/generated/idl/CSSPageRule.js +8 -27
- package/lib/generated/idl/CSSRule.js +9 -28
- package/lib/generated/idl/CSSRuleList.js +6 -12
- package/lib/generated/idl/CSSScopeRule.js +6 -12
- package/lib/generated/idl/CSSStyleDeclaration.js +13 -61
- package/lib/generated/idl/CSSStyleProperties.js +3282 -19668
- package/lib/generated/idl/CSSStyleRule.js +8 -27
- package/lib/generated/idl/CSSStyleSheet.js +13 -61
- package/lib/generated/idl/CSSSupportsRule.js +5 -7
- package/lib/generated/idl/CharacterData.js +18 -88
- package/lib/generated/idl/CloseEvent.js +7 -19
- package/lib/generated/idl/CompositionEvent.js +6 -14
- package/lib/generated/idl/Crypto.js +6 -12
- package/lib/generated/idl/CustomElementRegistry.js +9 -35
- package/lib/generated/idl/CustomEvent.js +6 -14
- package/lib/generated/idl/DOMException.js +7 -21
- package/lib/generated/idl/DOMImplementation.js +8 -27
- package/lib/generated/idl/DOMParser.js +5 -7
- package/lib/generated/idl/DOMRect.js +12 -36
- package/lib/generated/idl/DOMRectReadOnly.js +13 -63
- package/lib/generated/idl/DOMTokenList.js +15 -62
- package/lib/generated/idl/DeviceMotionEvent.js +8 -28
- package/lib/generated/idl/DeviceMotionEventAcceleration.js +7 -21
- package/lib/generated/idl/DeviceMotionEventRotationRate.js +7 -21
- package/lib/generated/idl/DeviceOrientationEvent.js +8 -28
- package/lib/generated/idl/Document.js +258 -1534
- package/lib/generated/idl/DocumentFragment.js +14 -67
- package/lib/generated/idl/DocumentType.js +11 -40
- package/lib/generated/idl/Element.js +160 -936
- package/lib/generated/idl/ElementInternals.js +90 -518
- package/lib/generated/idl/ErrorEvent.js +9 -31
- package/lib/generated/idl/Event.js +24 -116
- package/lib/generated/idl/EventTarget.js +7 -21
- package/lib/generated/idl/External.js +6 -14
- package/lib/generated/idl/File.js +6 -12
- package/lib/generated/idl/FileList.js +6 -10
- package/lib/generated/idl/FileReader.js +24 -130
- package/lib/generated/idl/FocusEvent.js +5 -7
- package/lib/generated/idl/FormData.js +14 -50
- package/lib/generated/idl/HTMLAnchorElement.js +50 -279
- package/lib/generated/idl/HTMLAreaElement.js +40 -219
- package/lib/generated/idl/HTMLBRElement.js +6 -12
- package/lib/generated/idl/HTMLBaseElement.js +8 -24
- package/lib/generated/idl/HTMLBodyElement.js +48 -280
- package/lib/generated/idl/HTMLButtonElement.js +26 -140
- package/lib/generated/idl/HTMLCanvasElement.js +11 -44
- package/lib/generated/idl/HTMLCollection.js +7 -19
- package/lib/generated/idl/HTMLDListElement.js +6 -12
- package/lib/generated/idl/HTMLDataElement.js +6 -12
- package/lib/generated/idl/HTMLDataListElement.js +5 -7
- package/lib/generated/idl/HTMLDetailsElement.js +6 -12
- package/lib/generated/idl/HTMLDialogElement.js +6 -12
- package/lib/generated/idl/HTMLDirectoryElement.js +6 -12
- package/lib/generated/idl/HTMLDivElement.js +6 -12
- package/lib/generated/idl/HTMLElement.js +210 -1322
- package/lib/generated/idl/HTMLEmbedElement.js +16 -72
- package/lib/generated/idl/HTMLFieldSetElement.js +17 -87
- package/lib/generated/idl/HTMLFontElement.js +10 -36
- package/lib/generated/idl/HTMLFormControlsCollection.js +5 -7
- package/lib/generated/idl/HTMLFormElement.js +25 -132
- package/lib/generated/idl/HTMLFrameElement.js +22 -110
- package/lib/generated/idl/HTMLFrameSetElement.js +40 -232
- package/lib/generated/idl/HTMLHRElement.js +14 -60
- package/lib/generated/idl/HTMLHeadingElement.js +6 -12
- package/lib/generated/idl/HTMLHtmlElement.js +6 -12
- package/lib/generated/idl/HTMLIFrameElement.js +31 -165
- package/lib/generated/idl/HTMLImageElement.js +40 -220
- package/lib/generated/idl/HTMLInputElement.js +90 -536
- package/lib/generated/idl/HTMLLIElement.js +8 -24
- package/lib/generated/idl/HTMLLabelElement.js +8 -26
- package/lib/generated/idl/HTMLLegendElement.js +7 -19
- package/lib/generated/idl/HTMLLinkElement.js +25 -129
- package/lib/generated/idl/HTMLMapElement.js +7 -19
- package/lib/generated/idl/HTMLMarqueeElement.js +24 -120
- package/lib/generated/idl/HTMLMediaElement.js +46 -275
- package/lib/generated/idl/HTMLMenuElement.js +6 -12
- package/lib/generated/idl/HTMLMetaElement.js +12 -48
- package/lib/generated/idl/HTMLMeterElement.js +17 -79
- package/lib/generated/idl/HTMLModElement.js +8 -24
- package/lib/generated/idl/HTMLOListElement.js +12 -48
- package/lib/generated/idl/HTMLObjectElement.js +44 -248
- package/lib/generated/idl/HTMLOptGroupElement.js +8 -24
- package/lib/generated/idl/HTMLOptionElement.js +18 -87
- package/lib/generated/idl/HTMLOptionsCollection.js +10 -39
- package/lib/generated/idl/HTMLOutputElement.js +21 -113
- package/lib/generated/idl/HTMLParagraphElement.js +6 -12
- package/lib/generated/idl/HTMLParamElement.js +12 -48
- package/lib/generated/idl/HTMLPreElement.js +6 -12
- package/lib/generated/idl/HTMLProgressElement.js +10 -38
- package/lib/generated/idl/HTMLQuoteElement.js +6 -12
- package/lib/generated/idl/HTMLScriptElement.js +20 -96
- package/lib/generated/idl/HTMLSelectElement.js +37 -214
- package/lib/generated/idl/HTMLSlotElement.js +8 -24
- package/lib/generated/idl/HTMLSourceElement.js +14 -60
- package/lib/generated/idl/HTMLStyleElement.js +11 -44
- package/lib/generated/idl/HTMLTableCaptionElement.js +6 -12
- package/lib/generated/idl/HTMLTableCellElement.js +33 -175
- package/lib/generated/idl/HTMLTableColElement.js +16 -72
- package/lib/generated/idl/HTMLTableElement.js +39 -220
- package/lib/generated/idl/HTMLTableRowElement.js +19 -94
- package/lib/generated/idl/HTMLTableSectionElement.js +15 -68
- package/lib/generated/idl/HTMLTemplateElement.js +5 -7
- package/lib/generated/idl/HTMLTextAreaElement.js +55 -322
- package/lib/generated/idl/HTMLTimeElement.js +6 -12
- package/lib/generated/idl/HTMLTitleElement.js +6 -12
- package/lib/generated/idl/HTMLTrackElement.js +15 -67
- package/lib/generated/idl/HTMLUListElement.js +8 -24
- package/lib/generated/idl/HTMLVideoElement.js +14 -62
- package/lib/generated/idl/HashChangeEvent.js +6 -14
- package/lib/generated/idl/Headers.js +14 -50
- package/lib/generated/idl/History.js +11 -34
- package/lib/generated/idl/InputEvent.js +7 -19
- package/lib/generated/idl/KeyboardEvent.js +17 -91
- package/lib/generated/idl/Location.js +25 -114
- package/lib/generated/idl/MediaList.js +11 -41
- package/lib/generated/idl/MessageEvent.js +10 -42
- package/lib/generated/idl/MimeType.js +8 -26
- package/lib/generated/idl/MimeTypeArray.js +7 -19
- package/lib/generated/idl/MouseEvent.js +25 -139
- package/lib/generated/idl/MutationObserver.js +7 -21
- package/lib/generated/idl/MutationRecord.js +13 -63
- package/lib/generated/idl/NamedNodeMap.js +12 -54
- package/lib/generated/idl/Navigator.js +21 -115
- package/lib/generated/idl/Node.js +35 -161
- package/lib/generated/idl/NodeIterator.js +12 -54
- package/lib/generated/idl/NodeList.js +6 -10
- package/lib/generated/idl/PageTransitionEvent.js +5 -7
- package/lib/generated/idl/Performance.js +7 -17
- package/lib/generated/idl/Plugin.js +10 -32
- package/lib/generated/idl/PluginArray.js +8 -24
- package/lib/generated/idl/PointerEvent.js +19 -105
- package/lib/generated/idl/PopStateEvent.js +5 -7
- package/lib/generated/idl/ProcessingInstruction.js +5 -7
- package/lib/generated/idl/ProgressEvent.js +7 -21
- package/lib/generated/idl/PromiseRejectionEvent.js +6 -14
- package/lib/generated/idl/QuotaExceededError.js +6 -14
- package/lib/generated/idl/RadioNodeList.js +6 -13
- package/lib/generated/idl/Range.js +27 -126
- package/lib/generated/idl/SVGAnimatedPreserveAspectRatio.js +6 -14
- package/lib/generated/idl/SVGAnimatedRect.js +6 -14
- package/lib/generated/idl/SVGAnimatedString.js +7 -20
- package/lib/generated/idl/SVGElement.js +192 -1208
- package/lib/generated/idl/SVGGraphicsElement.js +6 -14
- package/lib/generated/idl/SVGNumber.js +6 -9
- package/lib/generated/idl/SVGPreserveAspectRatio.js +8 -26
- package/lib/generated/idl/SVGRect.js +12 -36
- package/lib/generated/idl/SVGSVGElement.js +45 -271
- package/lib/generated/idl/SVGStringList.js +13 -61
- package/lib/generated/idl/SVGSymbolElement.js +6 -14
- package/lib/generated/idl/Screen.js +10 -38
- package/lib/generated/idl/Selection.js +26 -140
- package/lib/generated/idl/ShadowRoot.js +9 -29
- package/lib/generated/idl/Storage.js +10 -30
- package/lib/generated/idl/StorageEvent.js +10 -38
- package/lib/generated/idl/StyleSheet.js +13 -52
- package/lib/generated/idl/StyleSheetList.js +6 -12
- package/lib/generated/idl/SubmitEvent.js +5 -7
- package/lib/generated/idl/Text.js +7 -17
- package/lib/generated/idl/TextDecoder.js +8 -25
- package/lib/generated/idl/TextEncoder.js +7 -18
- package/lib/generated/idl/TouchEvent.js +11 -49
- package/lib/generated/idl/TransitionEvent.js +7 -21
- package/lib/generated/idl/TreeWalker.js +16 -77
- package/lib/generated/idl/UIEvent.js +8 -20
- package/lib/generated/idl/ValidityState.js +15 -77
- package/lib/generated/idl/WebSocket.js +21 -103
- package/lib/generated/idl/WheelEvent.js +8 -28
- package/lib/generated/idl/XMLHttpRequest.js +27 -150
- package/lib/generated/idl/XMLHttpRequestEventTarget.js +18 -91
- package/lib/generated/idl/XMLSerializer.js +5 -7
- package/lib/generated/idl/utils.js +11 -0
- package/lib/jsdom/living/constraint-validation/DefaultConstraintValidation-impl.js +4 -1
- package/lib/jsdom/living/css/CSSGroupingRule-impl.js +2 -2
- package/lib/jsdom/living/css/CSSMediaRule-impl.js +2 -1
- package/lib/jsdom/living/css/CSSRule-impl.js +13 -0
- package/lib/jsdom/living/css/CSSRuleList-impl.js +1 -1
- package/lib/jsdom/living/css/CSSStyleDeclaration-impl.js +19 -8
- package/lib/jsdom/living/css/CSSStyleRule-impl.js +2 -0
- package/lib/jsdom/living/css/CSSStyleSheet-impl.js +4 -4
- package/lib/jsdom/living/css/MediaList-impl.js +9 -0
- package/lib/jsdom/living/css/StyleSheet-impl.js +10 -1
- package/lib/jsdom/living/css/helpers/computed-style.js +7 -3
- package/lib/jsdom/living/css/helpers/css-parser.js +7 -2
- package/lib/jsdom/living/css/helpers/css-values.js +2 -1
- package/lib/jsdom/living/helpers/document-named-properties.js +17 -0
- package/lib/jsdom/living/helpers/focusing.js +27 -20
- package/lib/jsdom/living/helpers/iterable-weak-list.js +16 -9
- package/lib/jsdom/living/helpers/shadow-dom.js +48 -1
- package/lib/jsdom/living/nodes/Document-impl.js +15 -17
- package/lib/jsdom/living/nodes/HTMLCollection-impl.js +1 -0
- package/lib/jsdom/living/nodes/HTMLInputElement-impl.js +34 -14
- package/lib/jsdom/living/nodes/HTMLOptionElement-impl.js +17 -7
- package/lib/jsdom/living/nodes/HTMLSelectElement-impl.js +9 -8
- package/lib/jsdom/living/nodes/HTMLTextAreaElement-impl.js +10 -3
- package/lib/jsdom/living/nodes/Node-impl.js +21 -2
- package/package.json +18 -43
|
@@ -13,6 +13,10 @@ const interfaceName = "SVGSymbolElement";
|
|
|
13
13
|
const $interfaceDescriptor = utils.createInterfaceDescriptor(() => SVGGraphicsElement.interfaceDescriptor);
|
|
14
14
|
exports.interfaceDescriptor = $interfaceDescriptor;
|
|
15
15
|
|
|
16
|
+
function $requireImpl(wrapper, globalObject, context) {
|
|
17
|
+
return utils.requireImplForWrapper(wrapper, $interfaceDescriptor, globalObject, interfaceName, context);
|
|
18
|
+
}
|
|
19
|
+
|
|
16
20
|
exports.is = value => {
|
|
17
21
|
return utils.implForWrapperWithInterface(value, $interfaceDescriptor) !== null;
|
|
18
22
|
};
|
|
@@ -96,13 +100,7 @@ exports.install = (globalObject, globalNames) => {
|
|
|
96
100
|
}
|
|
97
101
|
|
|
98
102
|
get viewBox() {
|
|
99
|
-
const $impl =
|
|
100
|
-
if ($impl === null) {
|
|
101
|
-
throw new globalObject.TypeError(
|
|
102
|
-
"'get viewBox' called on an object that is not a valid instance of SVGSymbolElement."
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
|
|
103
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get viewBox");
|
|
106
104
|
return utils.getSameObject(this, "viewBox", () => {
|
|
107
105
|
return create_SVGAnimatedRect(globalObject, [], {
|
|
108
106
|
element: $impl,
|
|
@@ -112,13 +110,7 @@ exports.install = (globalObject, globalNames) => {
|
|
|
112
110
|
}
|
|
113
111
|
|
|
114
112
|
get preserveAspectRatio() {
|
|
115
|
-
const $impl =
|
|
116
|
-
if ($impl === null) {
|
|
117
|
-
throw new globalObject.TypeError(
|
|
118
|
-
"'get preserveAspectRatio' called on an object that is not a valid instance of SVGSymbolElement."
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
|
|
113
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get preserveAspectRatio");
|
|
122
114
|
return utils.getSameObject(this, "preserveAspectRatio", () => {
|
|
123
115
|
return create_SVGAnimatedPreserveAspectRatio(globalObject, [], {
|
|
124
116
|
element: $impl
|
|
@@ -10,6 +10,10 @@ const interfaceName = "Screen";
|
|
|
10
10
|
const $interfaceDescriptor = utils.createInterfaceDescriptor();
|
|
11
11
|
exports.interfaceDescriptor = $interfaceDescriptor;
|
|
12
12
|
|
|
13
|
+
function $requireImpl(wrapper, globalObject, context) {
|
|
14
|
+
return utils.requireImplForWrapper(wrapper, $interfaceDescriptor, globalObject, interfaceName, context);
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
exports.is = value => {
|
|
14
18
|
return utils.implForWrapperWithInterface(value, $interfaceDescriptor) !== null;
|
|
15
19
|
};
|
|
@@ -91,64 +95,32 @@ exports.install = (globalObject, globalNames) => {
|
|
|
91
95
|
}
|
|
92
96
|
|
|
93
97
|
get availWidth() {
|
|
94
|
-
const $impl =
|
|
95
|
-
if ($impl === null) {
|
|
96
|
-
throw new globalObject.TypeError(
|
|
97
|
-
"'get availWidth' called on an object that is not a valid instance of Screen."
|
|
98
|
-
);
|
|
99
|
-
}
|
|
100
|
-
|
|
98
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get availWidth");
|
|
101
99
|
return $impl["availWidth"];
|
|
102
100
|
}
|
|
103
101
|
|
|
104
102
|
get availHeight() {
|
|
105
|
-
const $impl =
|
|
106
|
-
if ($impl === null) {
|
|
107
|
-
throw new globalObject.TypeError(
|
|
108
|
-
"'get availHeight' called on an object that is not a valid instance of Screen."
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
|
|
103
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get availHeight");
|
|
112
104
|
return $impl["availHeight"];
|
|
113
105
|
}
|
|
114
106
|
|
|
115
107
|
get width() {
|
|
116
|
-
const $impl =
|
|
117
|
-
if ($impl === null) {
|
|
118
|
-
throw new globalObject.TypeError("'get width' called on an object that is not a valid instance of Screen.");
|
|
119
|
-
}
|
|
120
|
-
|
|
108
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get width");
|
|
121
109
|
return $impl["width"];
|
|
122
110
|
}
|
|
123
111
|
|
|
124
112
|
get height() {
|
|
125
|
-
const $impl =
|
|
126
|
-
if ($impl === null) {
|
|
127
|
-
throw new globalObject.TypeError("'get height' called on an object that is not a valid instance of Screen.");
|
|
128
|
-
}
|
|
129
|
-
|
|
113
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get height");
|
|
130
114
|
return $impl["height"];
|
|
131
115
|
}
|
|
132
116
|
|
|
133
117
|
get colorDepth() {
|
|
134
|
-
const $impl =
|
|
135
|
-
if ($impl === null) {
|
|
136
|
-
throw new globalObject.TypeError(
|
|
137
|
-
"'get colorDepth' called on an object that is not a valid instance of Screen."
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
|
|
118
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get colorDepth");
|
|
141
119
|
return $impl["colorDepth"];
|
|
142
120
|
}
|
|
143
121
|
|
|
144
122
|
get pixelDepth() {
|
|
145
|
-
const $impl =
|
|
146
|
-
if ($impl === null) {
|
|
147
|
-
throw new globalObject.TypeError(
|
|
148
|
-
"'get pixelDepth' called on an object that is not a valid instance of Screen."
|
|
149
|
-
);
|
|
150
|
-
}
|
|
151
|
-
|
|
123
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get pixelDepth");
|
|
152
124
|
return $impl["pixelDepth"];
|
|
153
125
|
}
|
|
154
126
|
}
|
|
@@ -16,6 +16,10 @@ const interfaceName = "Selection";
|
|
|
16
16
|
const $interfaceDescriptor = utils.createInterfaceDescriptor();
|
|
17
17
|
exports.interfaceDescriptor = $interfaceDescriptor;
|
|
18
18
|
|
|
19
|
+
function $requireImpl(wrapper, globalObject, context) {
|
|
20
|
+
return utils.requireImplForWrapper(wrapper, $interfaceDescriptor, globalObject, interfaceName, context);
|
|
21
|
+
}
|
|
22
|
+
|
|
19
23
|
exports.is = value => {
|
|
20
24
|
return utils.implForWrapperWithInterface(value, $interfaceDescriptor) !== null;
|
|
21
25
|
};
|
|
@@ -97,11 +101,7 @@ exports.install = (globalObject, globalNames) => {
|
|
|
97
101
|
}
|
|
98
102
|
|
|
99
103
|
getRangeAt(index) {
|
|
100
|
-
const $impl =
|
|
101
|
-
if ($impl === null) {
|
|
102
|
-
throw new globalObject.TypeError("'getRangeAt' called on an object that is not a valid instance of Selection.");
|
|
103
|
-
}
|
|
104
|
-
|
|
104
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "getRangeAt");
|
|
105
105
|
if (arguments.length < 1) {
|
|
106
106
|
throw new globalObject.TypeError(
|
|
107
107
|
`Failed to execute 'getRangeAt' on 'Selection': 1 argument required, but only ${arguments.length} present.`
|
|
@@ -120,11 +120,7 @@ exports.install = (globalObject, globalNames) => {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
addRange(range) {
|
|
123
|
-
const $impl =
|
|
124
|
-
if ($impl === null) {
|
|
125
|
-
throw new globalObject.TypeError("'addRange' called on an object that is not a valid instance of Selection.");
|
|
126
|
-
}
|
|
127
|
-
|
|
123
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "addRange");
|
|
128
124
|
if (arguments.length < 1) {
|
|
129
125
|
throw new globalObject.TypeError(
|
|
130
126
|
`Failed to execute 'addRange' on 'Selection': 1 argument required, but only ${arguments.length} present.`
|
|
@@ -142,13 +138,7 @@ exports.install = (globalObject, globalNames) => {
|
|
|
142
138
|
}
|
|
143
139
|
|
|
144
140
|
removeRange(range) {
|
|
145
|
-
const $impl =
|
|
146
|
-
if ($impl === null) {
|
|
147
|
-
throw new globalObject.TypeError(
|
|
148
|
-
"'removeRange' called on an object that is not a valid instance of Selection."
|
|
149
|
-
);
|
|
150
|
-
}
|
|
151
|
-
|
|
141
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "removeRange");
|
|
152
142
|
if (arguments.length < 1) {
|
|
153
143
|
throw new globalObject.TypeError(
|
|
154
144
|
`Failed to execute 'removeRange' on 'Selection': 1 argument required, but only ${arguments.length} present.`
|
|
@@ -166,31 +156,17 @@ exports.install = (globalObject, globalNames) => {
|
|
|
166
156
|
}
|
|
167
157
|
|
|
168
158
|
removeAllRanges() {
|
|
169
|
-
const $impl =
|
|
170
|
-
if ($impl === null) {
|
|
171
|
-
throw new globalObject.TypeError(
|
|
172
|
-
"'removeAllRanges' called on an object that is not a valid instance of Selection."
|
|
173
|
-
);
|
|
174
|
-
}
|
|
175
|
-
|
|
159
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "removeAllRanges");
|
|
176
160
|
return $impl.removeAllRanges();
|
|
177
161
|
}
|
|
178
162
|
|
|
179
163
|
empty() {
|
|
180
|
-
const $impl =
|
|
181
|
-
if ($impl === null) {
|
|
182
|
-
throw new globalObject.TypeError("'empty' called on an object that is not a valid instance of Selection.");
|
|
183
|
-
}
|
|
184
|
-
|
|
164
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "empty");
|
|
185
165
|
return $impl.empty();
|
|
186
166
|
}
|
|
187
167
|
|
|
188
168
|
collapse(node) {
|
|
189
|
-
const $impl =
|
|
190
|
-
if ($impl === null) {
|
|
191
|
-
throw new globalObject.TypeError("'collapse' called on an object that is not a valid instance of Selection.");
|
|
192
|
-
}
|
|
193
|
-
|
|
169
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "collapse");
|
|
194
170
|
if (arguments.length < 1) {
|
|
195
171
|
throw new globalObject.TypeError(
|
|
196
172
|
`Failed to execute 'collapse' on 'Selection': 1 argument required, but only ${arguments.length} present.`
|
|
@@ -224,13 +200,7 @@ exports.install = (globalObject, globalNames) => {
|
|
|
224
200
|
}
|
|
225
201
|
|
|
226
202
|
setPosition(node) {
|
|
227
|
-
const $impl =
|
|
228
|
-
if ($impl === null) {
|
|
229
|
-
throw new globalObject.TypeError(
|
|
230
|
-
"'setPosition' called on an object that is not a valid instance of Selection."
|
|
231
|
-
);
|
|
232
|
-
}
|
|
233
|
-
|
|
203
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "setPosition");
|
|
234
204
|
if (arguments.length < 1) {
|
|
235
205
|
throw new globalObject.TypeError(
|
|
236
206
|
`Failed to execute 'setPosition' on 'Selection': 1 argument required, but only ${arguments.length} present.`
|
|
@@ -264,33 +234,17 @@ exports.install = (globalObject, globalNames) => {
|
|
|
264
234
|
}
|
|
265
235
|
|
|
266
236
|
collapseToStart() {
|
|
267
|
-
const $impl =
|
|
268
|
-
if ($impl === null) {
|
|
269
|
-
throw new globalObject.TypeError(
|
|
270
|
-
"'collapseToStart' called on an object that is not a valid instance of Selection."
|
|
271
|
-
);
|
|
272
|
-
}
|
|
273
|
-
|
|
237
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "collapseToStart");
|
|
274
238
|
return $impl.collapseToStart();
|
|
275
239
|
}
|
|
276
240
|
|
|
277
241
|
collapseToEnd() {
|
|
278
|
-
const $impl =
|
|
279
|
-
if ($impl === null) {
|
|
280
|
-
throw new globalObject.TypeError(
|
|
281
|
-
"'collapseToEnd' called on an object that is not a valid instance of Selection."
|
|
282
|
-
);
|
|
283
|
-
}
|
|
284
|
-
|
|
242
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "collapseToEnd");
|
|
285
243
|
return $impl.collapseToEnd();
|
|
286
244
|
}
|
|
287
245
|
|
|
288
246
|
extend(node) {
|
|
289
|
-
const $impl =
|
|
290
|
-
if ($impl === null) {
|
|
291
|
-
throw new globalObject.TypeError("'extend' called on an object that is not a valid instance of Selection.");
|
|
292
|
-
}
|
|
293
|
-
|
|
247
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "extend");
|
|
294
248
|
if (arguments.length < 1) {
|
|
295
249
|
throw new globalObject.TypeError(
|
|
296
250
|
`Failed to execute 'extend' on 'Selection': 1 argument required, but only ${arguments.length} present.`
|
|
@@ -320,13 +274,7 @@ exports.install = (globalObject, globalNames) => {
|
|
|
320
274
|
}
|
|
321
275
|
|
|
322
276
|
setBaseAndExtent(anchorNode, anchorOffset, focusNode, focusOffset) {
|
|
323
|
-
const $impl =
|
|
324
|
-
if ($impl === null) {
|
|
325
|
-
throw new globalObject.TypeError(
|
|
326
|
-
"'setBaseAndExtent' called on an object that is not a valid instance of Selection."
|
|
327
|
-
);
|
|
328
|
-
}
|
|
329
|
-
|
|
277
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "setBaseAndExtent");
|
|
330
278
|
if (arguments.length < 4) {
|
|
331
279
|
throw new globalObject.TypeError(
|
|
332
280
|
`Failed to execute 'setBaseAndExtent' on 'Selection': 4 arguments required, but only ${arguments.length} present.`
|
|
@@ -367,13 +315,7 @@ exports.install = (globalObject, globalNames) => {
|
|
|
367
315
|
}
|
|
368
316
|
|
|
369
317
|
selectAllChildren(node) {
|
|
370
|
-
const $impl =
|
|
371
|
-
if ($impl === null) {
|
|
372
|
-
throw new globalObject.TypeError(
|
|
373
|
-
"'selectAllChildren' called on an object that is not a valid instance of Selection."
|
|
374
|
-
);
|
|
375
|
-
}
|
|
376
|
-
|
|
318
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "selectAllChildren");
|
|
377
319
|
if (arguments.length < 1) {
|
|
378
320
|
throw new globalObject.TypeError(
|
|
379
321
|
`Failed to execute 'selectAllChildren' on 'Selection': 1 argument required, but only ${arguments.length} present.`
|
|
@@ -391,13 +333,7 @@ exports.install = (globalObject, globalNames) => {
|
|
|
391
333
|
}
|
|
392
334
|
|
|
393
335
|
deleteFromDocument() {
|
|
394
|
-
const $impl =
|
|
395
|
-
if ($impl === null) {
|
|
396
|
-
throw new globalObject.TypeError(
|
|
397
|
-
"'deleteFromDocument' called on an object that is not a valid instance of Selection."
|
|
398
|
-
);
|
|
399
|
-
}
|
|
400
|
-
|
|
336
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "deleteFromDocument");
|
|
401
337
|
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
402
338
|
try {
|
|
403
339
|
return $impl.deleteFromDocument();
|
|
@@ -407,13 +343,7 @@ exports.install = (globalObject, globalNames) => {
|
|
|
407
343
|
}
|
|
408
344
|
|
|
409
345
|
containsNode(node) {
|
|
410
|
-
const $impl =
|
|
411
|
-
if ($impl === null) {
|
|
412
|
-
throw new globalObject.TypeError(
|
|
413
|
-
"'containsNode' called on an object that is not a valid instance of Selection."
|
|
414
|
-
);
|
|
415
|
-
}
|
|
416
|
-
|
|
346
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "containsNode");
|
|
417
347
|
if (arguments.length < 1) {
|
|
418
348
|
throw new globalObject.TypeError(
|
|
419
349
|
`Failed to execute 'containsNode' on 'Selection': 1 argument required, but only ${arguments.length} present.`
|
|
@@ -443,86 +373,42 @@ exports.install = (globalObject, globalNames) => {
|
|
|
443
373
|
}
|
|
444
374
|
|
|
445
375
|
toString() {
|
|
446
|
-
const $impl =
|
|
447
|
-
if ($impl === null) {
|
|
448
|
-
throw new globalObject.TypeError("'toString' called on an object that is not a valid instance of Selection.");
|
|
449
|
-
}
|
|
450
|
-
|
|
376
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "toString");
|
|
451
377
|
return $impl.toString();
|
|
452
378
|
}
|
|
453
379
|
|
|
454
380
|
get anchorNode() {
|
|
455
|
-
const $impl =
|
|
456
|
-
if ($impl === null) {
|
|
457
|
-
throw new globalObject.TypeError(
|
|
458
|
-
"'get anchorNode' called on an object that is not a valid instance of Selection."
|
|
459
|
-
);
|
|
460
|
-
}
|
|
461
|
-
|
|
381
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get anchorNode");
|
|
462
382
|
return utils.tryWrapperForImpl($impl["anchorNode"]);
|
|
463
383
|
}
|
|
464
384
|
|
|
465
385
|
get anchorOffset() {
|
|
466
|
-
const $impl =
|
|
467
|
-
if ($impl === null) {
|
|
468
|
-
throw new globalObject.TypeError(
|
|
469
|
-
"'get anchorOffset' called on an object that is not a valid instance of Selection."
|
|
470
|
-
);
|
|
471
|
-
}
|
|
472
|
-
|
|
386
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get anchorOffset");
|
|
473
387
|
return $impl["anchorOffset"];
|
|
474
388
|
}
|
|
475
389
|
|
|
476
390
|
get focusNode() {
|
|
477
|
-
const $impl =
|
|
478
|
-
if ($impl === null) {
|
|
479
|
-
throw new globalObject.TypeError(
|
|
480
|
-
"'get focusNode' called on an object that is not a valid instance of Selection."
|
|
481
|
-
);
|
|
482
|
-
}
|
|
483
|
-
|
|
391
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get focusNode");
|
|
484
392
|
return utils.tryWrapperForImpl($impl["focusNode"]);
|
|
485
393
|
}
|
|
486
394
|
|
|
487
395
|
get focusOffset() {
|
|
488
|
-
const $impl =
|
|
489
|
-
if ($impl === null) {
|
|
490
|
-
throw new globalObject.TypeError(
|
|
491
|
-
"'get focusOffset' called on an object that is not a valid instance of Selection."
|
|
492
|
-
);
|
|
493
|
-
}
|
|
494
|
-
|
|
396
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get focusOffset");
|
|
495
397
|
return $impl["focusOffset"];
|
|
496
398
|
}
|
|
497
399
|
|
|
498
400
|
get isCollapsed() {
|
|
499
|
-
const $impl =
|
|
500
|
-
if ($impl === null) {
|
|
501
|
-
throw new globalObject.TypeError(
|
|
502
|
-
"'get isCollapsed' called on an object that is not a valid instance of Selection."
|
|
503
|
-
);
|
|
504
|
-
}
|
|
505
|
-
|
|
401
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get isCollapsed");
|
|
506
402
|
return $impl["isCollapsed"];
|
|
507
403
|
}
|
|
508
404
|
|
|
509
405
|
get rangeCount() {
|
|
510
|
-
const $impl =
|
|
511
|
-
if ($impl === null) {
|
|
512
|
-
throw new globalObject.TypeError(
|
|
513
|
-
"'get rangeCount' called on an object that is not a valid instance of Selection."
|
|
514
|
-
);
|
|
515
|
-
}
|
|
516
|
-
|
|
406
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get rangeCount");
|
|
517
407
|
return $impl["rangeCount"];
|
|
518
408
|
}
|
|
519
409
|
|
|
520
410
|
get type() {
|
|
521
|
-
const $impl =
|
|
522
|
-
if ($impl === null) {
|
|
523
|
-
throw new globalObject.TypeError("'get type' called on an object that is not a valid instance of Selection.");
|
|
524
|
-
}
|
|
525
|
-
|
|
411
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get type");
|
|
526
412
|
return $impl["type"];
|
|
527
413
|
}
|
|
528
414
|
}
|
|
@@ -15,6 +15,10 @@ const interfaceName = "ShadowRoot";
|
|
|
15
15
|
const $interfaceDescriptor = utils.createInterfaceDescriptor(() => DocumentFragment.interfaceDescriptor);
|
|
16
16
|
exports.interfaceDescriptor = $interfaceDescriptor;
|
|
17
17
|
|
|
18
|
+
function $requireImpl(wrapper, globalObject, context) {
|
|
19
|
+
return utils.requireImplForWrapper(wrapper, $interfaceDescriptor, globalObject, interfaceName, context);
|
|
20
|
+
}
|
|
21
|
+
|
|
18
22
|
exports.is = value => {
|
|
19
23
|
return utils.implForWrapperWithInterface(value, $interfaceDescriptor) !== null;
|
|
20
24
|
};
|
|
@@ -98,30 +102,17 @@ exports.install = (globalObject, globalNames) => {
|
|
|
98
102
|
}
|
|
99
103
|
|
|
100
104
|
get mode() {
|
|
101
|
-
const $impl =
|
|
102
|
-
if ($impl === null) {
|
|
103
|
-
throw new globalObject.TypeError("'get mode' called on an object that is not a valid instance of ShadowRoot.");
|
|
104
|
-
}
|
|
105
|
-
|
|
105
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get mode");
|
|
106
106
|
return utils.tryWrapperForImpl($impl["mode"]);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
get host() {
|
|
110
|
-
const $impl =
|
|
111
|
-
if ($impl === null) {
|
|
112
|
-
throw new globalObject.TypeError("'get host' called on an object that is not a valid instance of ShadowRoot.");
|
|
113
|
-
}
|
|
114
|
-
|
|
110
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get host");
|
|
115
111
|
return utils.tryWrapperForImpl($impl["host"]);
|
|
116
112
|
}
|
|
117
113
|
|
|
118
114
|
get innerHTML() {
|
|
119
|
-
const $impl =
|
|
120
|
-
if ($impl === null) {
|
|
121
|
-
throw new globalObject.TypeError(
|
|
122
|
-
"'get innerHTML' called on an object that is not a valid instance of ShadowRoot."
|
|
123
|
-
);
|
|
124
|
-
}
|
|
115
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get innerHTML");
|
|
125
116
|
|
|
126
117
|
ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
|
|
127
118
|
try {
|
|
@@ -132,12 +123,7 @@ exports.install = (globalObject, globalNames) => {
|
|
|
132
123
|
}
|
|
133
124
|
|
|
134
125
|
set innerHTML(V) {
|
|
135
|
-
const $impl =
|
|
136
|
-
if ($impl === null) {
|
|
137
|
-
throw new globalObject.TypeError(
|
|
138
|
-
"'set innerHTML' called on an object that is not a valid instance of ShadowRoot."
|
|
139
|
-
);
|
|
140
|
-
}
|
|
126
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "set innerHTML");
|
|
141
127
|
|
|
142
128
|
V = conversions["DOMString"](V, {
|
|
143
129
|
context: "Failed to set the 'innerHTML' property on 'ShadowRoot': The provided value",
|
|
@@ -154,13 +140,7 @@ exports.install = (globalObject, globalNames) => {
|
|
|
154
140
|
}
|
|
155
141
|
|
|
156
142
|
get activeElement() {
|
|
157
|
-
const $impl =
|
|
158
|
-
if ($impl === null) {
|
|
159
|
-
throw new globalObject.TypeError(
|
|
160
|
-
"'get activeElement' called on an object that is not a valid instance of ShadowRoot."
|
|
161
|
-
);
|
|
162
|
-
}
|
|
163
|
-
|
|
143
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get activeElement");
|
|
164
144
|
return utils.tryWrapperForImpl($impl["activeElement"]);
|
|
165
145
|
}
|
|
166
146
|
}
|
|
@@ -10,6 +10,10 @@ const interfaceName = "Storage";
|
|
|
10
10
|
const $interfaceDescriptor = utils.createInterfaceDescriptor();
|
|
11
11
|
exports.interfaceDescriptor = $interfaceDescriptor;
|
|
12
12
|
|
|
13
|
+
function $requireImpl(wrapper, globalObject, context) {
|
|
14
|
+
return utils.requireImplForWrapper(wrapper, $interfaceDescriptor, globalObject, interfaceName, context);
|
|
15
|
+
}
|
|
16
|
+
|
|
13
17
|
exports.is = value => {
|
|
14
18
|
return utils.implForWrapperWithInterface(value, $interfaceDescriptor) !== null;
|
|
15
19
|
};
|
|
@@ -103,11 +107,7 @@ exports.install = (globalObject, globalNames) => {
|
|
|
103
107
|
}
|
|
104
108
|
|
|
105
109
|
key(index) {
|
|
106
|
-
const $impl =
|
|
107
|
-
if ($impl === null) {
|
|
108
|
-
throw new globalObject.TypeError("'key' called on an object that is not a valid instance of Storage.");
|
|
109
|
-
}
|
|
110
|
-
|
|
110
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "key");
|
|
111
111
|
if (arguments.length < 1) {
|
|
112
112
|
throw new globalObject.TypeError(
|
|
113
113
|
`Failed to execute 'key' on 'Storage': 1 argument required, but only ${arguments.length} present.`
|
|
@@ -126,11 +126,7 @@ exports.install = (globalObject, globalNames) => {
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
getItem(key) {
|
|
129
|
-
const $impl =
|
|
130
|
-
if ($impl === null) {
|
|
131
|
-
throw new globalObject.TypeError("'getItem' called on an object that is not a valid instance of Storage.");
|
|
132
|
-
}
|
|
133
|
-
|
|
129
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "getItem");
|
|
134
130
|
if (arguments.length < 1) {
|
|
135
131
|
throw new globalObject.TypeError(
|
|
136
132
|
`Failed to execute 'getItem' on 'Storage': 1 argument required, but only ${arguments.length} present.`
|
|
@@ -149,11 +145,7 @@ exports.install = (globalObject, globalNames) => {
|
|
|
149
145
|
}
|
|
150
146
|
|
|
151
147
|
setItem(key, value) {
|
|
152
|
-
const $impl =
|
|
153
|
-
if ($impl === null) {
|
|
154
|
-
throw new globalObject.TypeError("'setItem' called on an object that is not a valid instance of Storage.");
|
|
155
|
-
}
|
|
156
|
-
|
|
148
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "setItem");
|
|
157
149
|
if (arguments.length < 2) {
|
|
158
150
|
throw new globalObject.TypeError(
|
|
159
151
|
`Failed to execute 'setItem' on 'Storage': 2 arguments required, but only ${arguments.length} present.`
|
|
@@ -180,11 +172,7 @@ exports.install = (globalObject, globalNames) => {
|
|
|
180
172
|
}
|
|
181
173
|
|
|
182
174
|
removeItem(key) {
|
|
183
|
-
const $impl =
|
|
184
|
-
if ($impl === null) {
|
|
185
|
-
throw new globalObject.TypeError("'removeItem' called on an object that is not a valid instance of Storage.");
|
|
186
|
-
}
|
|
187
|
-
|
|
175
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "removeItem");
|
|
188
176
|
if (arguments.length < 1) {
|
|
189
177
|
throw new globalObject.TypeError(
|
|
190
178
|
`Failed to execute 'removeItem' on 'Storage': 1 argument required, but only ${arguments.length} present.`
|
|
@@ -203,20 +191,12 @@ exports.install = (globalObject, globalNames) => {
|
|
|
203
191
|
}
|
|
204
192
|
|
|
205
193
|
clear() {
|
|
206
|
-
const $impl =
|
|
207
|
-
if ($impl === null) {
|
|
208
|
-
throw new globalObject.TypeError("'clear' called on an object that is not a valid instance of Storage.");
|
|
209
|
-
}
|
|
210
|
-
|
|
194
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "clear");
|
|
211
195
|
return $impl.clear();
|
|
212
196
|
}
|
|
213
197
|
|
|
214
198
|
get length() {
|
|
215
|
-
const $impl =
|
|
216
|
-
if ($impl === null) {
|
|
217
|
-
throw new globalObject.TypeError("'get length' called on an object that is not a valid instance of Storage.");
|
|
218
|
-
}
|
|
219
|
-
|
|
199
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get length");
|
|
220
200
|
return $impl["length"];
|
|
221
201
|
}
|
|
222
202
|
}
|
|
@@ -13,6 +13,10 @@ const interfaceName = "StorageEvent";
|
|
|
13
13
|
const $interfaceDescriptor = utils.createInterfaceDescriptor(() => Event.interfaceDescriptor);
|
|
14
14
|
exports.interfaceDescriptor = $interfaceDescriptor;
|
|
15
15
|
|
|
16
|
+
function $requireImpl(wrapper, globalObject, context) {
|
|
17
|
+
return utils.requireImplForWrapper(wrapper, $interfaceDescriptor, globalObject, interfaceName, context);
|
|
18
|
+
}
|
|
19
|
+
|
|
16
20
|
exports.is = value => {
|
|
17
21
|
return utils.implForWrapperWithInterface(value, $interfaceDescriptor) !== null;
|
|
18
22
|
};
|
|
@@ -117,13 +121,7 @@ exports.install = (globalObject, globalNames) => {
|
|
|
117
121
|
}
|
|
118
122
|
|
|
119
123
|
initStorageEvent(type) {
|
|
120
|
-
const $impl =
|
|
121
|
-
if ($impl === null) {
|
|
122
|
-
throw new globalObject.TypeError(
|
|
123
|
-
"'initStorageEvent' called on an object that is not a valid instance of StorageEvent."
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
|
-
|
|
124
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "initStorageEvent");
|
|
127
125
|
if (arguments.length < 1) {
|
|
128
126
|
throw new globalObject.TypeError(
|
|
129
127
|
`Failed to execute 'initStorageEvent' on 'StorageEvent': 1 argument required, but only ${arguments.length} present.`
|
|
@@ -241,53 +239,27 @@ exports.install = (globalObject, globalNames) => {
|
|
|
241
239
|
}
|
|
242
240
|
|
|
243
241
|
get key() {
|
|
244
|
-
const $impl =
|
|
245
|
-
if ($impl === null) {
|
|
246
|
-
throw new globalObject.TypeError("'get key' called on an object that is not a valid instance of StorageEvent.");
|
|
247
|
-
}
|
|
248
|
-
|
|
242
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get key");
|
|
249
243
|
return $impl["key"];
|
|
250
244
|
}
|
|
251
245
|
|
|
252
246
|
get oldValue() {
|
|
253
|
-
const $impl =
|
|
254
|
-
if ($impl === null) {
|
|
255
|
-
throw new globalObject.TypeError(
|
|
256
|
-
"'get oldValue' called on an object that is not a valid instance of StorageEvent."
|
|
257
|
-
);
|
|
258
|
-
}
|
|
259
|
-
|
|
247
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get oldValue");
|
|
260
248
|
return $impl["oldValue"];
|
|
261
249
|
}
|
|
262
250
|
|
|
263
251
|
get newValue() {
|
|
264
|
-
const $impl =
|
|
265
|
-
if ($impl === null) {
|
|
266
|
-
throw new globalObject.TypeError(
|
|
267
|
-
"'get newValue' called on an object that is not a valid instance of StorageEvent."
|
|
268
|
-
);
|
|
269
|
-
}
|
|
270
|
-
|
|
252
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get newValue");
|
|
271
253
|
return $impl["newValue"];
|
|
272
254
|
}
|
|
273
255
|
|
|
274
256
|
get url() {
|
|
275
|
-
const $impl =
|
|
276
|
-
if ($impl === null) {
|
|
277
|
-
throw new globalObject.TypeError("'get url' called on an object that is not a valid instance of StorageEvent.");
|
|
278
|
-
}
|
|
279
|
-
|
|
257
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get url");
|
|
280
258
|
return $impl["url"];
|
|
281
259
|
}
|
|
282
260
|
|
|
283
261
|
get storageArea() {
|
|
284
|
-
const $impl =
|
|
285
|
-
if ($impl === null) {
|
|
286
|
-
throw new globalObject.TypeError(
|
|
287
|
-
"'get storageArea' called on an object that is not a valid instance of StorageEvent."
|
|
288
|
-
);
|
|
289
|
-
}
|
|
290
|
-
|
|
262
|
+
const $impl = $requireImpl(this ?? globalObject, globalObject, "get storageArea");
|
|
291
263
|
return utils.tryWrapperForImpl($impl["storageArea"]);
|
|
292
264
|
}
|
|
293
265
|
}
|