@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.
Files changed (222) hide show
  1. package/README.md +3 -14
  2. package/changes.json +3 -28
  3. package/lib/generated/css-property-definitions.js +1130 -10853
  4. package/lib/generated/css-property-descriptors.js +28 -28
  5. package/lib/generated/css-property-metadata.js +864 -7813
  6. package/lib/generated/idl/AbortController.js +6 -13
  7. package/lib/generated/idl/AbortSignal.js +9 -34
  8. package/lib/generated/idl/AbstractRange.js +9 -35
  9. package/lib/generated/idl/Attr.js +12 -42
  10. package/lib/generated/idl/BarProp.js +5 -5
  11. package/lib/generated/idl/BeforeUnloadEvent.js +6 -13
  12. package/lib/generated/idl/Blob.js +10 -29
  13. package/lib/generated/idl/BlobEvent.js +6 -12
  14. package/lib/generated/idl/CSSConditionRule.js +5 -7
  15. package/lib/generated/idl/CSSContainerRule.js +6 -14
  16. package/lib/generated/idl/CSSCounterStyleRule.js +26 -143
  17. package/lib/generated/idl/CSSFontFaceRule.js +6 -14
  18. package/lib/generated/idl/CSSGroupingRule.js +7 -21
  19. package/lib/generated/idl/CSSImportRule.js +10 -42
  20. package/lib/generated/idl/CSSKeyframeRule.js +8 -27
  21. package/lib/generated/idl/CSSKeyframesRule.js +11 -48
  22. package/lib/generated/idl/CSSLayerBlockRule.js +5 -7
  23. package/lib/generated/idl/CSSLayerStatementRule.js +5 -7
  24. package/lib/generated/idl/CSSMediaRule.js +7 -21
  25. package/lib/generated/idl/CSSNamespaceRule.js +6 -14
  26. package/lib/generated/idl/CSSNestedDeclarations.js +6 -14
  27. package/lib/generated/idl/CSSPageRule.js +8 -27
  28. package/lib/generated/idl/CSSRule.js +9 -28
  29. package/lib/generated/idl/CSSRuleList.js +6 -12
  30. package/lib/generated/idl/CSSScopeRule.js +6 -12
  31. package/lib/generated/idl/CSSStyleDeclaration.js +13 -61
  32. package/lib/generated/idl/CSSStyleProperties.js +3282 -19668
  33. package/lib/generated/idl/CSSStyleRule.js +8 -27
  34. package/lib/generated/idl/CSSStyleSheet.js +13 -61
  35. package/lib/generated/idl/CSSSupportsRule.js +5 -7
  36. package/lib/generated/idl/CharacterData.js +18 -88
  37. package/lib/generated/idl/CloseEvent.js +7 -19
  38. package/lib/generated/idl/CompositionEvent.js +6 -14
  39. package/lib/generated/idl/Crypto.js +6 -12
  40. package/lib/generated/idl/CustomElementRegistry.js +9 -35
  41. package/lib/generated/idl/CustomEvent.js +6 -14
  42. package/lib/generated/idl/DOMException.js +7 -21
  43. package/lib/generated/idl/DOMImplementation.js +8 -27
  44. package/lib/generated/idl/DOMParser.js +5 -7
  45. package/lib/generated/idl/DOMRect.js +12 -36
  46. package/lib/generated/idl/DOMRectReadOnly.js +13 -63
  47. package/lib/generated/idl/DOMTokenList.js +15 -62
  48. package/lib/generated/idl/DeviceMotionEvent.js +8 -28
  49. package/lib/generated/idl/DeviceMotionEventAcceleration.js +7 -21
  50. package/lib/generated/idl/DeviceMotionEventRotationRate.js +7 -21
  51. package/lib/generated/idl/DeviceOrientationEvent.js +8 -28
  52. package/lib/generated/idl/Document.js +258 -1534
  53. package/lib/generated/idl/DocumentFragment.js +14 -67
  54. package/lib/generated/idl/DocumentType.js +11 -40
  55. package/lib/generated/idl/Element.js +160 -936
  56. package/lib/generated/idl/ElementInternals.js +90 -518
  57. package/lib/generated/idl/ErrorEvent.js +9 -31
  58. package/lib/generated/idl/Event.js +24 -116
  59. package/lib/generated/idl/EventTarget.js +7 -21
  60. package/lib/generated/idl/External.js +6 -14
  61. package/lib/generated/idl/File.js +6 -12
  62. package/lib/generated/idl/FileList.js +6 -10
  63. package/lib/generated/idl/FileReader.js +24 -130
  64. package/lib/generated/idl/FocusEvent.js +5 -7
  65. package/lib/generated/idl/FormData.js +14 -50
  66. package/lib/generated/idl/HTMLAnchorElement.js +50 -279
  67. package/lib/generated/idl/HTMLAreaElement.js +40 -219
  68. package/lib/generated/idl/HTMLBRElement.js +6 -12
  69. package/lib/generated/idl/HTMLBaseElement.js +8 -24
  70. package/lib/generated/idl/HTMLBodyElement.js +48 -280
  71. package/lib/generated/idl/HTMLButtonElement.js +26 -140
  72. package/lib/generated/idl/HTMLCanvasElement.js +11 -44
  73. package/lib/generated/idl/HTMLCollection.js +7 -19
  74. package/lib/generated/idl/HTMLDListElement.js +6 -12
  75. package/lib/generated/idl/HTMLDataElement.js +6 -12
  76. package/lib/generated/idl/HTMLDataListElement.js +5 -7
  77. package/lib/generated/idl/HTMLDetailsElement.js +6 -12
  78. package/lib/generated/idl/HTMLDialogElement.js +6 -12
  79. package/lib/generated/idl/HTMLDirectoryElement.js +6 -12
  80. package/lib/generated/idl/HTMLDivElement.js +6 -12
  81. package/lib/generated/idl/HTMLElement.js +210 -1322
  82. package/lib/generated/idl/HTMLEmbedElement.js +16 -72
  83. package/lib/generated/idl/HTMLFieldSetElement.js +17 -87
  84. package/lib/generated/idl/HTMLFontElement.js +10 -36
  85. package/lib/generated/idl/HTMLFormControlsCollection.js +5 -7
  86. package/lib/generated/idl/HTMLFormElement.js +25 -132
  87. package/lib/generated/idl/HTMLFrameElement.js +22 -110
  88. package/lib/generated/idl/HTMLFrameSetElement.js +40 -232
  89. package/lib/generated/idl/HTMLHRElement.js +14 -60
  90. package/lib/generated/idl/HTMLHeadingElement.js +6 -12
  91. package/lib/generated/idl/HTMLHtmlElement.js +6 -12
  92. package/lib/generated/idl/HTMLIFrameElement.js +31 -165
  93. package/lib/generated/idl/HTMLImageElement.js +40 -220
  94. package/lib/generated/idl/HTMLInputElement.js +90 -536
  95. package/lib/generated/idl/HTMLLIElement.js +8 -24
  96. package/lib/generated/idl/HTMLLabelElement.js +8 -26
  97. package/lib/generated/idl/HTMLLegendElement.js +7 -19
  98. package/lib/generated/idl/HTMLLinkElement.js +25 -129
  99. package/lib/generated/idl/HTMLMapElement.js +7 -19
  100. package/lib/generated/idl/HTMLMarqueeElement.js +24 -120
  101. package/lib/generated/idl/HTMLMediaElement.js +46 -275
  102. package/lib/generated/idl/HTMLMenuElement.js +6 -12
  103. package/lib/generated/idl/HTMLMetaElement.js +12 -48
  104. package/lib/generated/idl/HTMLMeterElement.js +17 -79
  105. package/lib/generated/idl/HTMLModElement.js +8 -24
  106. package/lib/generated/idl/HTMLOListElement.js +12 -48
  107. package/lib/generated/idl/HTMLObjectElement.js +44 -248
  108. package/lib/generated/idl/HTMLOptGroupElement.js +8 -24
  109. package/lib/generated/idl/HTMLOptionElement.js +18 -87
  110. package/lib/generated/idl/HTMLOptionsCollection.js +10 -39
  111. package/lib/generated/idl/HTMLOutputElement.js +21 -113
  112. package/lib/generated/idl/HTMLParagraphElement.js +6 -12
  113. package/lib/generated/idl/HTMLParamElement.js +12 -48
  114. package/lib/generated/idl/HTMLPreElement.js +6 -12
  115. package/lib/generated/idl/HTMLProgressElement.js +10 -38
  116. package/lib/generated/idl/HTMLQuoteElement.js +6 -12
  117. package/lib/generated/idl/HTMLScriptElement.js +20 -96
  118. package/lib/generated/idl/HTMLSelectElement.js +37 -214
  119. package/lib/generated/idl/HTMLSlotElement.js +8 -24
  120. package/lib/generated/idl/HTMLSourceElement.js +14 -60
  121. package/lib/generated/idl/HTMLStyleElement.js +11 -44
  122. package/lib/generated/idl/HTMLTableCaptionElement.js +6 -12
  123. package/lib/generated/idl/HTMLTableCellElement.js +33 -175
  124. package/lib/generated/idl/HTMLTableColElement.js +16 -72
  125. package/lib/generated/idl/HTMLTableElement.js +39 -220
  126. package/lib/generated/idl/HTMLTableRowElement.js +19 -94
  127. package/lib/generated/idl/HTMLTableSectionElement.js +15 -68
  128. package/lib/generated/idl/HTMLTemplateElement.js +5 -7
  129. package/lib/generated/idl/HTMLTextAreaElement.js +55 -322
  130. package/lib/generated/idl/HTMLTimeElement.js +6 -12
  131. package/lib/generated/idl/HTMLTitleElement.js +6 -12
  132. package/lib/generated/idl/HTMLTrackElement.js +15 -67
  133. package/lib/generated/idl/HTMLUListElement.js +8 -24
  134. package/lib/generated/idl/HTMLVideoElement.js +14 -62
  135. package/lib/generated/idl/HashChangeEvent.js +6 -14
  136. package/lib/generated/idl/Headers.js +14 -50
  137. package/lib/generated/idl/History.js +11 -34
  138. package/lib/generated/idl/InputEvent.js +7 -19
  139. package/lib/generated/idl/KeyboardEvent.js +17 -91
  140. package/lib/generated/idl/Location.js +25 -114
  141. package/lib/generated/idl/MediaList.js +11 -41
  142. package/lib/generated/idl/MessageEvent.js +10 -42
  143. package/lib/generated/idl/MimeType.js +8 -26
  144. package/lib/generated/idl/MimeTypeArray.js +7 -19
  145. package/lib/generated/idl/MouseEvent.js +25 -139
  146. package/lib/generated/idl/MutationObserver.js +7 -21
  147. package/lib/generated/idl/MutationRecord.js +13 -63
  148. package/lib/generated/idl/NamedNodeMap.js +12 -54
  149. package/lib/generated/idl/Navigator.js +21 -115
  150. package/lib/generated/idl/Node.js +35 -161
  151. package/lib/generated/idl/NodeIterator.js +12 -54
  152. package/lib/generated/idl/NodeList.js +6 -10
  153. package/lib/generated/idl/PageTransitionEvent.js +5 -7
  154. package/lib/generated/idl/Performance.js +7 -17
  155. package/lib/generated/idl/Plugin.js +10 -32
  156. package/lib/generated/idl/PluginArray.js +8 -24
  157. package/lib/generated/idl/PointerEvent.js +19 -105
  158. package/lib/generated/idl/PopStateEvent.js +5 -7
  159. package/lib/generated/idl/ProcessingInstruction.js +5 -7
  160. package/lib/generated/idl/ProgressEvent.js +7 -21
  161. package/lib/generated/idl/PromiseRejectionEvent.js +6 -14
  162. package/lib/generated/idl/QuotaExceededError.js +6 -14
  163. package/lib/generated/idl/RadioNodeList.js +6 -13
  164. package/lib/generated/idl/Range.js +27 -126
  165. package/lib/generated/idl/SVGAnimatedPreserveAspectRatio.js +6 -14
  166. package/lib/generated/idl/SVGAnimatedRect.js +6 -14
  167. package/lib/generated/idl/SVGAnimatedString.js +7 -20
  168. package/lib/generated/idl/SVGElement.js +192 -1208
  169. package/lib/generated/idl/SVGGraphicsElement.js +6 -14
  170. package/lib/generated/idl/SVGNumber.js +6 -9
  171. package/lib/generated/idl/SVGPreserveAspectRatio.js +8 -26
  172. package/lib/generated/idl/SVGRect.js +12 -36
  173. package/lib/generated/idl/SVGSVGElement.js +45 -271
  174. package/lib/generated/idl/SVGStringList.js +13 -61
  175. package/lib/generated/idl/SVGSymbolElement.js +6 -14
  176. package/lib/generated/idl/Screen.js +10 -38
  177. package/lib/generated/idl/Selection.js +26 -140
  178. package/lib/generated/idl/ShadowRoot.js +9 -29
  179. package/lib/generated/idl/Storage.js +10 -30
  180. package/lib/generated/idl/StorageEvent.js +10 -38
  181. package/lib/generated/idl/StyleSheet.js +13 -52
  182. package/lib/generated/idl/StyleSheetList.js +6 -12
  183. package/lib/generated/idl/SubmitEvent.js +5 -7
  184. package/lib/generated/idl/Text.js +7 -17
  185. package/lib/generated/idl/TextDecoder.js +8 -25
  186. package/lib/generated/idl/TextEncoder.js +7 -18
  187. package/lib/generated/idl/TouchEvent.js +11 -49
  188. package/lib/generated/idl/TransitionEvent.js +7 -21
  189. package/lib/generated/idl/TreeWalker.js +16 -77
  190. package/lib/generated/idl/UIEvent.js +8 -20
  191. package/lib/generated/idl/ValidityState.js +15 -77
  192. package/lib/generated/idl/WebSocket.js +21 -103
  193. package/lib/generated/idl/WheelEvent.js +8 -28
  194. package/lib/generated/idl/XMLHttpRequest.js +27 -150
  195. package/lib/generated/idl/XMLHttpRequestEventTarget.js +18 -91
  196. package/lib/generated/idl/XMLSerializer.js +5 -7
  197. package/lib/generated/idl/utils.js +11 -0
  198. package/lib/jsdom/living/constraint-validation/DefaultConstraintValidation-impl.js +4 -1
  199. package/lib/jsdom/living/css/CSSGroupingRule-impl.js +2 -2
  200. package/lib/jsdom/living/css/CSSMediaRule-impl.js +2 -1
  201. package/lib/jsdom/living/css/CSSRule-impl.js +13 -0
  202. package/lib/jsdom/living/css/CSSRuleList-impl.js +1 -1
  203. package/lib/jsdom/living/css/CSSStyleDeclaration-impl.js +19 -8
  204. package/lib/jsdom/living/css/CSSStyleRule-impl.js +2 -0
  205. package/lib/jsdom/living/css/CSSStyleSheet-impl.js +4 -4
  206. package/lib/jsdom/living/css/MediaList-impl.js +9 -0
  207. package/lib/jsdom/living/css/StyleSheet-impl.js +10 -1
  208. package/lib/jsdom/living/css/helpers/computed-style.js +7 -3
  209. package/lib/jsdom/living/css/helpers/css-parser.js +7 -2
  210. package/lib/jsdom/living/css/helpers/css-values.js +2 -1
  211. package/lib/jsdom/living/helpers/document-named-properties.js +17 -0
  212. package/lib/jsdom/living/helpers/focusing.js +27 -20
  213. package/lib/jsdom/living/helpers/iterable-weak-list.js +16 -9
  214. package/lib/jsdom/living/helpers/shadow-dom.js +48 -1
  215. package/lib/jsdom/living/nodes/Document-impl.js +15 -17
  216. package/lib/jsdom/living/nodes/HTMLCollection-impl.js +1 -0
  217. package/lib/jsdom/living/nodes/HTMLInputElement-impl.js +34 -14
  218. package/lib/jsdom/living/nodes/HTMLOptionElement-impl.js +17 -7
  219. package/lib/jsdom/living/nodes/HTMLSelectElement-impl.js +9 -8
  220. package/lib/jsdom/living/nodes/HTMLTextAreaElement-impl.js +10 -3
  221. package/lib/jsdom/living/nodes/Node-impl.js +21 -2
  222. package/package.json +18 -43
@@ -18,6 +18,10 @@ const interfaceName = "SVGElement";
18
18
  const $interfaceDescriptor = utils.createInterfaceDescriptor(() => Element.interfaceDescriptor);
19
19
  exports.interfaceDescriptor = $interfaceDescriptor;
20
20
 
21
+ function $requireImpl(wrapper, globalObject, context) {
22
+ return utils.requireImplForWrapper(wrapper, $interfaceDescriptor, globalObject, interfaceName, context);
23
+ }
24
+
21
25
  exports.is = value => {
22
26
  return utils.implForWrapperWithInterface(value, $interfaceDescriptor) !== null;
23
27
  };
@@ -101,31 +105,17 @@ exports.install = (globalObject, globalNames) => {
101
105
  }
102
106
 
103
107
  focus() {
104
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
105
- if ($impl === null) {
106
- throw new globalObject.TypeError("'focus' called on an object that is not a valid instance of SVGElement.");
107
- }
108
-
108
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "focus");
109
109
  return $impl.focus();
110
110
  }
111
111
 
112
112
  blur() {
113
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
114
- if ($impl === null) {
115
- throw new globalObject.TypeError("'blur' called on an object that is not a valid instance of SVGElement.");
116
- }
117
-
113
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "blur");
118
114
  return $impl.blur();
119
115
  }
120
116
 
121
117
  get className() {
122
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
123
- if ($impl === null) {
124
- throw new globalObject.TypeError(
125
- "'get className' called on an object that is not a valid instance of SVGElement."
126
- );
127
- }
128
-
118
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get className");
129
119
  return utils.getSameObject(this, "className", () => {
130
120
  return create_SVGAnimatedString(globalObject, [], {
131
121
  element: $impl,
@@ -135,33 +125,17 @@ exports.install = (globalObject, globalNames) => {
135
125
  }
136
126
 
137
127
  get ownerSVGElement() {
138
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
139
- if ($impl === null) {
140
- throw new globalObject.TypeError(
141
- "'get ownerSVGElement' called on an object that is not a valid instance of SVGElement."
142
- );
143
- }
144
-
128
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get ownerSVGElement");
145
129
  return utils.tryWrapperForImpl($impl["ownerSVGElement"]);
146
130
  }
147
131
 
148
132
  get viewportElement() {
149
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
150
- if ($impl === null) {
151
- throw new globalObject.TypeError(
152
- "'get viewportElement' called on an object that is not a valid instance of SVGElement."
153
- );
154
- }
155
-
133
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get viewportElement");
156
134
  return utils.tryWrapperForImpl($impl["viewportElement"]);
157
135
  }
158
136
 
159
137
  get style() {
160
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
161
- if ($impl === null) {
162
- throw new globalObject.TypeError("'get style' called on an object that is not a valid instance of SVGElement.");
163
- }
164
-
138
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get style");
165
139
  return utils.getSameObject(this, "style", () => {
166
140
  return utils.tryWrapperForImpl($impl["style"]);
167
141
  });
@@ -169,11 +143,7 @@ exports.install = (globalObject, globalNames) => {
169
143
 
170
144
  set style(V) {
171
145
  const esValue = this ?? globalObject;
172
-
173
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
174
- if ($impl === null) {
175
- throw new globalObject.TypeError("'set style' called on an object that is not a valid instance of SVGElement.");
176
- }
146
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set style");
177
147
 
178
148
  const Q = esValue["style"];
179
149
  if (!utils.isObject(Q)) {
@@ -183,23 +153,12 @@ exports.install = (globalObject, globalNames) => {
183
153
  }
184
154
 
185
155
  get onabort() {
186
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
187
- if ($impl === null) {
188
- throw new globalObject.TypeError(
189
- "'get onabort' called on an object that is not a valid instance of SVGElement."
190
- );
191
- }
192
-
156
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onabort");
193
157
  return utils.tryWrapperForImpl($impl["onabort"]);
194
158
  }
195
159
 
196
160
  set onabort(V) {
197
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
198
- if ($impl === null) {
199
- throw new globalObject.TypeError(
200
- "'set onabort' called on an object that is not a valid instance of SVGElement."
201
- );
202
- }
161
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onabort");
203
162
 
204
163
  if (!utils.isObject(V)) {
205
164
  V = null;
@@ -212,23 +171,12 @@ exports.install = (globalObject, globalNames) => {
212
171
  }
213
172
 
214
173
  get onauxclick() {
215
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
216
- if ($impl === null) {
217
- throw new globalObject.TypeError(
218
- "'get onauxclick' called on an object that is not a valid instance of SVGElement."
219
- );
220
- }
221
-
174
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onauxclick");
222
175
  return utils.tryWrapperForImpl($impl["onauxclick"]);
223
176
  }
224
177
 
225
178
  set onauxclick(V) {
226
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
227
- if ($impl === null) {
228
- throw new globalObject.TypeError(
229
- "'set onauxclick' called on an object that is not a valid instance of SVGElement."
230
- );
231
- }
179
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onauxclick");
232
180
 
233
181
  if (!utils.isObject(V)) {
234
182
  V = null;
@@ -241,23 +189,12 @@ exports.install = (globalObject, globalNames) => {
241
189
  }
242
190
 
243
191
  get onbeforeinput() {
244
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
245
- if ($impl === null) {
246
- throw new globalObject.TypeError(
247
- "'get onbeforeinput' called on an object that is not a valid instance of SVGElement."
248
- );
249
- }
250
-
192
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onbeforeinput");
251
193
  return utils.tryWrapperForImpl($impl["onbeforeinput"]);
252
194
  }
253
195
 
254
196
  set onbeforeinput(V) {
255
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
256
- if ($impl === null) {
257
- throw new globalObject.TypeError(
258
- "'set onbeforeinput' called on an object that is not a valid instance of SVGElement."
259
- );
260
- }
197
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onbeforeinput");
261
198
 
262
199
  if (!utils.isObject(V)) {
263
200
  V = null;
@@ -270,23 +207,12 @@ exports.install = (globalObject, globalNames) => {
270
207
  }
271
208
 
272
209
  get onbeforematch() {
273
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
274
- if ($impl === null) {
275
- throw new globalObject.TypeError(
276
- "'get onbeforematch' called on an object that is not a valid instance of SVGElement."
277
- );
278
- }
279
-
210
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onbeforematch");
280
211
  return utils.tryWrapperForImpl($impl["onbeforematch"]);
281
212
  }
282
213
 
283
214
  set onbeforematch(V) {
284
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
285
- if ($impl === null) {
286
- throw new globalObject.TypeError(
287
- "'set onbeforematch' called on an object that is not a valid instance of SVGElement."
288
- );
289
- }
215
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onbeforematch");
290
216
 
291
217
  if (!utils.isObject(V)) {
292
218
  V = null;
@@ -299,23 +225,12 @@ exports.install = (globalObject, globalNames) => {
299
225
  }
300
226
 
301
227
  get onbeforetoggle() {
302
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
303
- if ($impl === null) {
304
- throw new globalObject.TypeError(
305
- "'get onbeforetoggle' called on an object that is not a valid instance of SVGElement."
306
- );
307
- }
308
-
228
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onbeforetoggle");
309
229
  return utils.tryWrapperForImpl($impl["onbeforetoggle"]);
310
230
  }
311
231
 
312
232
  set onbeforetoggle(V) {
313
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
314
- if ($impl === null) {
315
- throw new globalObject.TypeError(
316
- "'set onbeforetoggle' called on an object that is not a valid instance of SVGElement."
317
- );
318
- }
233
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onbeforetoggle");
319
234
 
320
235
  if (!utils.isObject(V)) {
321
236
  V = null;
@@ -328,23 +243,12 @@ exports.install = (globalObject, globalNames) => {
328
243
  }
329
244
 
330
245
  get onblur() {
331
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
332
- if ($impl === null) {
333
- throw new globalObject.TypeError(
334
- "'get onblur' called on an object that is not a valid instance of SVGElement."
335
- );
336
- }
337
-
246
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onblur");
338
247
  return utils.tryWrapperForImpl($impl["onblur"]);
339
248
  }
340
249
 
341
250
  set onblur(V) {
342
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
343
- if ($impl === null) {
344
- throw new globalObject.TypeError(
345
- "'set onblur' called on an object that is not a valid instance of SVGElement."
346
- );
347
- }
251
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onblur");
348
252
 
349
253
  if (!utils.isObject(V)) {
350
254
  V = null;
@@ -357,23 +261,12 @@ exports.install = (globalObject, globalNames) => {
357
261
  }
358
262
 
359
263
  get oncancel() {
360
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
361
- if ($impl === null) {
362
- throw new globalObject.TypeError(
363
- "'get oncancel' called on an object that is not a valid instance of SVGElement."
364
- );
365
- }
366
-
264
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get oncancel");
367
265
  return utils.tryWrapperForImpl($impl["oncancel"]);
368
266
  }
369
267
 
370
268
  set oncancel(V) {
371
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
372
- if ($impl === null) {
373
- throw new globalObject.TypeError(
374
- "'set oncancel' called on an object that is not a valid instance of SVGElement."
375
- );
376
- }
269
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set oncancel");
377
270
 
378
271
  if (!utils.isObject(V)) {
379
272
  V = null;
@@ -386,23 +279,12 @@ exports.install = (globalObject, globalNames) => {
386
279
  }
387
280
 
388
281
  get oncanplay() {
389
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
390
- if ($impl === null) {
391
- throw new globalObject.TypeError(
392
- "'get oncanplay' called on an object that is not a valid instance of SVGElement."
393
- );
394
- }
395
-
282
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get oncanplay");
396
283
  return utils.tryWrapperForImpl($impl["oncanplay"]);
397
284
  }
398
285
 
399
286
  set oncanplay(V) {
400
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
401
- if ($impl === null) {
402
- throw new globalObject.TypeError(
403
- "'set oncanplay' called on an object that is not a valid instance of SVGElement."
404
- );
405
- }
287
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set oncanplay");
406
288
 
407
289
  if (!utils.isObject(V)) {
408
290
  V = null;
@@ -415,23 +297,12 @@ exports.install = (globalObject, globalNames) => {
415
297
  }
416
298
 
417
299
  get oncanplaythrough() {
418
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
419
- if ($impl === null) {
420
- throw new globalObject.TypeError(
421
- "'get oncanplaythrough' called on an object that is not a valid instance of SVGElement."
422
- );
423
- }
424
-
300
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get oncanplaythrough");
425
301
  return utils.tryWrapperForImpl($impl["oncanplaythrough"]);
426
302
  }
427
303
 
428
304
  set oncanplaythrough(V) {
429
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
430
- if ($impl === null) {
431
- throw new globalObject.TypeError(
432
- "'set oncanplaythrough' called on an object that is not a valid instance of SVGElement."
433
- );
434
- }
305
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set oncanplaythrough");
435
306
 
436
307
  if (!utils.isObject(V)) {
437
308
  V = null;
@@ -444,23 +315,12 @@ exports.install = (globalObject, globalNames) => {
444
315
  }
445
316
 
446
317
  get onchange() {
447
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
448
- if ($impl === null) {
449
- throw new globalObject.TypeError(
450
- "'get onchange' called on an object that is not a valid instance of SVGElement."
451
- );
452
- }
453
-
318
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onchange");
454
319
  return utils.tryWrapperForImpl($impl["onchange"]);
455
320
  }
456
321
 
457
322
  set onchange(V) {
458
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
459
- if ($impl === null) {
460
- throw new globalObject.TypeError(
461
- "'set onchange' called on an object that is not a valid instance of SVGElement."
462
- );
463
- }
323
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onchange");
464
324
 
465
325
  if (!utils.isObject(V)) {
466
326
  V = null;
@@ -473,23 +333,12 @@ exports.install = (globalObject, globalNames) => {
473
333
  }
474
334
 
475
335
  get onclick() {
476
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
477
- if ($impl === null) {
478
- throw new globalObject.TypeError(
479
- "'get onclick' called on an object that is not a valid instance of SVGElement."
480
- );
481
- }
482
-
336
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onclick");
483
337
  return utils.tryWrapperForImpl($impl["onclick"]);
484
338
  }
485
339
 
486
340
  set onclick(V) {
487
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
488
- if ($impl === null) {
489
- throw new globalObject.TypeError(
490
- "'set onclick' called on an object that is not a valid instance of SVGElement."
491
- );
492
- }
341
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onclick");
493
342
 
494
343
  if (!utils.isObject(V)) {
495
344
  V = null;
@@ -502,23 +351,12 @@ exports.install = (globalObject, globalNames) => {
502
351
  }
503
352
 
504
353
  get onclose() {
505
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
506
- if ($impl === null) {
507
- throw new globalObject.TypeError(
508
- "'get onclose' called on an object that is not a valid instance of SVGElement."
509
- );
510
- }
511
-
354
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onclose");
512
355
  return utils.tryWrapperForImpl($impl["onclose"]);
513
356
  }
514
357
 
515
358
  set onclose(V) {
516
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
517
- if ($impl === null) {
518
- throw new globalObject.TypeError(
519
- "'set onclose' called on an object that is not a valid instance of SVGElement."
520
- );
521
- }
359
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onclose");
522
360
 
523
361
  if (!utils.isObject(V)) {
524
362
  V = null;
@@ -531,23 +369,12 @@ exports.install = (globalObject, globalNames) => {
531
369
  }
532
370
 
533
371
  get oncontextlost() {
534
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
535
- if ($impl === null) {
536
- throw new globalObject.TypeError(
537
- "'get oncontextlost' called on an object that is not a valid instance of SVGElement."
538
- );
539
- }
540
-
372
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get oncontextlost");
541
373
  return utils.tryWrapperForImpl($impl["oncontextlost"]);
542
374
  }
543
375
 
544
376
  set oncontextlost(V) {
545
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
546
- if ($impl === null) {
547
- throw new globalObject.TypeError(
548
- "'set oncontextlost' called on an object that is not a valid instance of SVGElement."
549
- );
550
- }
377
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set oncontextlost");
551
378
 
552
379
  if (!utils.isObject(V)) {
553
380
  V = null;
@@ -560,23 +387,12 @@ exports.install = (globalObject, globalNames) => {
560
387
  }
561
388
 
562
389
  get oncontextmenu() {
563
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
564
- if ($impl === null) {
565
- throw new globalObject.TypeError(
566
- "'get oncontextmenu' called on an object that is not a valid instance of SVGElement."
567
- );
568
- }
569
-
390
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get oncontextmenu");
570
391
  return utils.tryWrapperForImpl($impl["oncontextmenu"]);
571
392
  }
572
393
 
573
394
  set oncontextmenu(V) {
574
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
575
- if ($impl === null) {
576
- throw new globalObject.TypeError(
577
- "'set oncontextmenu' called on an object that is not a valid instance of SVGElement."
578
- );
579
- }
395
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set oncontextmenu");
580
396
 
581
397
  if (!utils.isObject(V)) {
582
398
  V = null;
@@ -589,23 +405,12 @@ exports.install = (globalObject, globalNames) => {
589
405
  }
590
406
 
591
407
  get oncontextrestored() {
592
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
593
- if ($impl === null) {
594
- throw new globalObject.TypeError(
595
- "'get oncontextrestored' called on an object that is not a valid instance of SVGElement."
596
- );
597
- }
598
-
408
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get oncontextrestored");
599
409
  return utils.tryWrapperForImpl($impl["oncontextrestored"]);
600
410
  }
601
411
 
602
412
  set oncontextrestored(V) {
603
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
604
- if ($impl === null) {
605
- throw new globalObject.TypeError(
606
- "'set oncontextrestored' called on an object that is not a valid instance of SVGElement."
607
- );
608
- }
413
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set oncontextrestored");
609
414
 
610
415
  if (!utils.isObject(V)) {
611
416
  V = null;
@@ -618,23 +423,12 @@ exports.install = (globalObject, globalNames) => {
618
423
  }
619
424
 
620
425
  get oncopy() {
621
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
622
- if ($impl === null) {
623
- throw new globalObject.TypeError(
624
- "'get oncopy' called on an object that is not a valid instance of SVGElement."
625
- );
626
- }
627
-
426
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get oncopy");
628
427
  return utils.tryWrapperForImpl($impl["oncopy"]);
629
428
  }
630
429
 
631
430
  set oncopy(V) {
632
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
633
- if ($impl === null) {
634
- throw new globalObject.TypeError(
635
- "'set oncopy' called on an object that is not a valid instance of SVGElement."
636
- );
637
- }
431
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set oncopy");
638
432
 
639
433
  if (!utils.isObject(V)) {
640
434
  V = null;
@@ -647,23 +441,12 @@ exports.install = (globalObject, globalNames) => {
647
441
  }
648
442
 
649
443
  get oncuechange() {
650
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
651
- if ($impl === null) {
652
- throw new globalObject.TypeError(
653
- "'get oncuechange' called on an object that is not a valid instance of SVGElement."
654
- );
655
- }
656
-
444
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get oncuechange");
657
445
  return utils.tryWrapperForImpl($impl["oncuechange"]);
658
446
  }
659
447
 
660
448
  set oncuechange(V) {
661
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
662
- if ($impl === null) {
663
- throw new globalObject.TypeError(
664
- "'set oncuechange' called on an object that is not a valid instance of SVGElement."
665
- );
666
- }
449
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set oncuechange");
667
450
 
668
451
  if (!utils.isObject(V)) {
669
452
  V = null;
@@ -676,19 +459,12 @@ exports.install = (globalObject, globalNames) => {
676
459
  }
677
460
 
678
461
  get oncut() {
679
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
680
- if ($impl === null) {
681
- throw new globalObject.TypeError("'get oncut' called on an object that is not a valid instance of SVGElement.");
682
- }
683
-
462
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get oncut");
684
463
  return utils.tryWrapperForImpl($impl["oncut"]);
685
464
  }
686
465
 
687
466
  set oncut(V) {
688
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
689
- if ($impl === null) {
690
- throw new globalObject.TypeError("'set oncut' called on an object that is not a valid instance of SVGElement.");
691
- }
467
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set oncut");
692
468
 
693
469
  if (!utils.isObject(V)) {
694
470
  V = null;
@@ -701,23 +477,12 @@ exports.install = (globalObject, globalNames) => {
701
477
  }
702
478
 
703
479
  get ondblclick() {
704
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
705
- if ($impl === null) {
706
- throw new globalObject.TypeError(
707
- "'get ondblclick' called on an object that is not a valid instance of SVGElement."
708
- );
709
- }
710
-
480
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get ondblclick");
711
481
  return utils.tryWrapperForImpl($impl["ondblclick"]);
712
482
  }
713
483
 
714
484
  set ondblclick(V) {
715
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
716
- if ($impl === null) {
717
- throw new globalObject.TypeError(
718
- "'set ondblclick' called on an object that is not a valid instance of SVGElement."
719
- );
720
- }
485
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set ondblclick");
721
486
 
722
487
  if (!utils.isObject(V)) {
723
488
  V = null;
@@ -730,23 +495,12 @@ exports.install = (globalObject, globalNames) => {
730
495
  }
731
496
 
732
497
  get ondrag() {
733
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
734
- if ($impl === null) {
735
- throw new globalObject.TypeError(
736
- "'get ondrag' called on an object that is not a valid instance of SVGElement."
737
- );
738
- }
739
-
498
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get ondrag");
740
499
  return utils.tryWrapperForImpl($impl["ondrag"]);
741
500
  }
742
501
 
743
502
  set ondrag(V) {
744
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
745
- if ($impl === null) {
746
- throw new globalObject.TypeError(
747
- "'set ondrag' called on an object that is not a valid instance of SVGElement."
748
- );
749
- }
503
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set ondrag");
750
504
 
751
505
  if (!utils.isObject(V)) {
752
506
  V = null;
@@ -759,23 +513,12 @@ exports.install = (globalObject, globalNames) => {
759
513
  }
760
514
 
761
515
  get ondragend() {
762
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
763
- if ($impl === null) {
764
- throw new globalObject.TypeError(
765
- "'get ondragend' called on an object that is not a valid instance of SVGElement."
766
- );
767
- }
768
-
516
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get ondragend");
769
517
  return utils.tryWrapperForImpl($impl["ondragend"]);
770
518
  }
771
519
 
772
520
  set ondragend(V) {
773
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
774
- if ($impl === null) {
775
- throw new globalObject.TypeError(
776
- "'set ondragend' called on an object that is not a valid instance of SVGElement."
777
- );
778
- }
521
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set ondragend");
779
522
 
780
523
  if (!utils.isObject(V)) {
781
524
  V = null;
@@ -788,23 +531,12 @@ exports.install = (globalObject, globalNames) => {
788
531
  }
789
532
 
790
533
  get ondragenter() {
791
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
792
- if ($impl === null) {
793
- throw new globalObject.TypeError(
794
- "'get ondragenter' called on an object that is not a valid instance of SVGElement."
795
- );
796
- }
797
-
534
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get ondragenter");
798
535
  return utils.tryWrapperForImpl($impl["ondragenter"]);
799
536
  }
800
537
 
801
538
  set ondragenter(V) {
802
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
803
- if ($impl === null) {
804
- throw new globalObject.TypeError(
805
- "'set ondragenter' called on an object that is not a valid instance of SVGElement."
806
- );
807
- }
539
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set ondragenter");
808
540
 
809
541
  if (!utils.isObject(V)) {
810
542
  V = null;
@@ -817,23 +549,12 @@ exports.install = (globalObject, globalNames) => {
817
549
  }
818
550
 
819
551
  get ondragleave() {
820
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
821
- if ($impl === null) {
822
- throw new globalObject.TypeError(
823
- "'get ondragleave' called on an object that is not a valid instance of SVGElement."
824
- );
825
- }
826
-
552
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get ondragleave");
827
553
  return utils.tryWrapperForImpl($impl["ondragleave"]);
828
554
  }
829
555
 
830
556
  set ondragleave(V) {
831
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
832
- if ($impl === null) {
833
- throw new globalObject.TypeError(
834
- "'set ondragleave' called on an object that is not a valid instance of SVGElement."
835
- );
836
- }
557
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set ondragleave");
837
558
 
838
559
  if (!utils.isObject(V)) {
839
560
  V = null;
@@ -846,23 +567,12 @@ exports.install = (globalObject, globalNames) => {
846
567
  }
847
568
 
848
569
  get ondragover() {
849
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
850
- if ($impl === null) {
851
- throw new globalObject.TypeError(
852
- "'get ondragover' called on an object that is not a valid instance of SVGElement."
853
- );
854
- }
855
-
570
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get ondragover");
856
571
  return utils.tryWrapperForImpl($impl["ondragover"]);
857
572
  }
858
573
 
859
574
  set ondragover(V) {
860
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
861
- if ($impl === null) {
862
- throw new globalObject.TypeError(
863
- "'set ondragover' called on an object that is not a valid instance of SVGElement."
864
- );
865
- }
575
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set ondragover");
866
576
 
867
577
  if (!utils.isObject(V)) {
868
578
  V = null;
@@ -875,23 +585,12 @@ exports.install = (globalObject, globalNames) => {
875
585
  }
876
586
 
877
587
  get ondragstart() {
878
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
879
- if ($impl === null) {
880
- throw new globalObject.TypeError(
881
- "'get ondragstart' called on an object that is not a valid instance of SVGElement."
882
- );
883
- }
884
-
588
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get ondragstart");
885
589
  return utils.tryWrapperForImpl($impl["ondragstart"]);
886
590
  }
887
591
 
888
592
  set ondragstart(V) {
889
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
890
- if ($impl === null) {
891
- throw new globalObject.TypeError(
892
- "'set ondragstart' called on an object that is not a valid instance of SVGElement."
893
- );
894
- }
593
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set ondragstart");
895
594
 
896
595
  if (!utils.isObject(V)) {
897
596
  V = null;
@@ -904,23 +603,12 @@ exports.install = (globalObject, globalNames) => {
904
603
  }
905
604
 
906
605
  get ondrop() {
907
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
908
- if ($impl === null) {
909
- throw new globalObject.TypeError(
910
- "'get ondrop' called on an object that is not a valid instance of SVGElement."
911
- );
912
- }
913
-
606
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get ondrop");
914
607
  return utils.tryWrapperForImpl($impl["ondrop"]);
915
608
  }
916
609
 
917
610
  set ondrop(V) {
918
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
919
- if ($impl === null) {
920
- throw new globalObject.TypeError(
921
- "'set ondrop' called on an object that is not a valid instance of SVGElement."
922
- );
923
- }
611
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set ondrop");
924
612
 
925
613
  if (!utils.isObject(V)) {
926
614
  V = null;
@@ -933,23 +621,12 @@ exports.install = (globalObject, globalNames) => {
933
621
  }
934
622
 
935
623
  get ondurationchange() {
936
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
937
- if ($impl === null) {
938
- throw new globalObject.TypeError(
939
- "'get ondurationchange' called on an object that is not a valid instance of SVGElement."
940
- );
941
- }
942
-
624
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get ondurationchange");
943
625
  return utils.tryWrapperForImpl($impl["ondurationchange"]);
944
626
  }
945
627
 
946
628
  set ondurationchange(V) {
947
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
948
- if ($impl === null) {
949
- throw new globalObject.TypeError(
950
- "'set ondurationchange' called on an object that is not a valid instance of SVGElement."
951
- );
952
- }
629
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set ondurationchange");
953
630
 
954
631
  if (!utils.isObject(V)) {
955
632
  V = null;
@@ -962,23 +639,12 @@ exports.install = (globalObject, globalNames) => {
962
639
  }
963
640
 
964
641
  get onemptied() {
965
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
966
- if ($impl === null) {
967
- throw new globalObject.TypeError(
968
- "'get onemptied' called on an object that is not a valid instance of SVGElement."
969
- );
970
- }
971
-
642
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onemptied");
972
643
  return utils.tryWrapperForImpl($impl["onemptied"]);
973
644
  }
974
645
 
975
646
  set onemptied(V) {
976
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
977
- if ($impl === null) {
978
- throw new globalObject.TypeError(
979
- "'set onemptied' called on an object that is not a valid instance of SVGElement."
980
- );
981
- }
647
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onemptied");
982
648
 
983
649
  if (!utils.isObject(V)) {
984
650
  V = null;
@@ -991,23 +657,12 @@ exports.install = (globalObject, globalNames) => {
991
657
  }
992
658
 
993
659
  get onended() {
994
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
995
- if ($impl === null) {
996
- throw new globalObject.TypeError(
997
- "'get onended' called on an object that is not a valid instance of SVGElement."
998
- );
999
- }
1000
-
660
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onended");
1001
661
  return utils.tryWrapperForImpl($impl["onended"]);
1002
662
  }
1003
663
 
1004
664
  set onended(V) {
1005
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1006
- if ($impl === null) {
1007
- throw new globalObject.TypeError(
1008
- "'set onended' called on an object that is not a valid instance of SVGElement."
1009
- );
1010
- }
665
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onended");
1011
666
 
1012
667
  if (!utils.isObject(V)) {
1013
668
  V = null;
@@ -1020,23 +675,12 @@ exports.install = (globalObject, globalNames) => {
1020
675
  }
1021
676
 
1022
677
  get onerror() {
1023
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1024
- if ($impl === null) {
1025
- throw new globalObject.TypeError(
1026
- "'get onerror' called on an object that is not a valid instance of SVGElement."
1027
- );
1028
- }
1029
-
678
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onerror");
1030
679
  return utils.tryWrapperForImpl($impl["onerror"]);
1031
680
  }
1032
681
 
1033
682
  set onerror(V) {
1034
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1035
- if ($impl === null) {
1036
- throw new globalObject.TypeError(
1037
- "'set onerror' called on an object that is not a valid instance of SVGElement."
1038
- );
1039
- }
683
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onerror");
1040
684
 
1041
685
  if (!utils.isObject(V)) {
1042
686
  V = null;
@@ -1049,23 +693,12 @@ exports.install = (globalObject, globalNames) => {
1049
693
  }
1050
694
 
1051
695
  get onfocus() {
1052
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1053
- if ($impl === null) {
1054
- throw new globalObject.TypeError(
1055
- "'get onfocus' called on an object that is not a valid instance of SVGElement."
1056
- );
1057
- }
1058
-
696
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onfocus");
1059
697
  return utils.tryWrapperForImpl($impl["onfocus"]);
1060
698
  }
1061
699
 
1062
700
  set onfocus(V) {
1063
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1064
- if ($impl === null) {
1065
- throw new globalObject.TypeError(
1066
- "'set onfocus' called on an object that is not a valid instance of SVGElement."
1067
- );
1068
- }
701
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onfocus");
1069
702
 
1070
703
  if (!utils.isObject(V)) {
1071
704
  V = null;
@@ -1078,23 +711,12 @@ exports.install = (globalObject, globalNames) => {
1078
711
  }
1079
712
 
1080
713
  get onformdata() {
1081
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1082
- if ($impl === null) {
1083
- throw new globalObject.TypeError(
1084
- "'get onformdata' called on an object that is not a valid instance of SVGElement."
1085
- );
1086
- }
1087
-
714
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onformdata");
1088
715
  return utils.tryWrapperForImpl($impl["onformdata"]);
1089
716
  }
1090
717
 
1091
718
  set onformdata(V) {
1092
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1093
- if ($impl === null) {
1094
- throw new globalObject.TypeError(
1095
- "'set onformdata' called on an object that is not a valid instance of SVGElement."
1096
- );
1097
- }
719
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onformdata");
1098
720
 
1099
721
  if (!utils.isObject(V)) {
1100
722
  V = null;
@@ -1107,23 +729,12 @@ exports.install = (globalObject, globalNames) => {
1107
729
  }
1108
730
 
1109
731
  get oninput() {
1110
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1111
- if ($impl === null) {
1112
- throw new globalObject.TypeError(
1113
- "'get oninput' called on an object that is not a valid instance of SVGElement."
1114
- );
1115
- }
1116
-
732
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get oninput");
1117
733
  return utils.tryWrapperForImpl($impl["oninput"]);
1118
734
  }
1119
735
 
1120
736
  set oninput(V) {
1121
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1122
- if ($impl === null) {
1123
- throw new globalObject.TypeError(
1124
- "'set oninput' called on an object that is not a valid instance of SVGElement."
1125
- );
1126
- }
737
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set oninput");
1127
738
 
1128
739
  if (!utils.isObject(V)) {
1129
740
  V = null;
@@ -1136,23 +747,12 @@ exports.install = (globalObject, globalNames) => {
1136
747
  }
1137
748
 
1138
749
  get oninvalid() {
1139
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1140
- if ($impl === null) {
1141
- throw new globalObject.TypeError(
1142
- "'get oninvalid' called on an object that is not a valid instance of SVGElement."
1143
- );
1144
- }
1145
-
750
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get oninvalid");
1146
751
  return utils.tryWrapperForImpl($impl["oninvalid"]);
1147
752
  }
1148
753
 
1149
754
  set oninvalid(V) {
1150
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1151
- if ($impl === null) {
1152
- throw new globalObject.TypeError(
1153
- "'set oninvalid' called on an object that is not a valid instance of SVGElement."
1154
- );
1155
- }
755
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set oninvalid");
1156
756
 
1157
757
  if (!utils.isObject(V)) {
1158
758
  V = null;
@@ -1165,23 +765,12 @@ exports.install = (globalObject, globalNames) => {
1165
765
  }
1166
766
 
1167
767
  get onkeydown() {
1168
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1169
- if ($impl === null) {
1170
- throw new globalObject.TypeError(
1171
- "'get onkeydown' called on an object that is not a valid instance of SVGElement."
1172
- );
1173
- }
1174
-
768
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onkeydown");
1175
769
  return utils.tryWrapperForImpl($impl["onkeydown"]);
1176
770
  }
1177
771
 
1178
772
  set onkeydown(V) {
1179
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1180
- if ($impl === null) {
1181
- throw new globalObject.TypeError(
1182
- "'set onkeydown' called on an object that is not a valid instance of SVGElement."
1183
- );
1184
- }
773
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onkeydown");
1185
774
 
1186
775
  if (!utils.isObject(V)) {
1187
776
  V = null;
@@ -1194,23 +783,12 @@ exports.install = (globalObject, globalNames) => {
1194
783
  }
1195
784
 
1196
785
  get onkeypress() {
1197
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1198
- if ($impl === null) {
1199
- throw new globalObject.TypeError(
1200
- "'get onkeypress' called on an object that is not a valid instance of SVGElement."
1201
- );
1202
- }
1203
-
786
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onkeypress");
1204
787
  return utils.tryWrapperForImpl($impl["onkeypress"]);
1205
788
  }
1206
789
 
1207
790
  set onkeypress(V) {
1208
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1209
- if ($impl === null) {
1210
- throw new globalObject.TypeError(
1211
- "'set onkeypress' called on an object that is not a valid instance of SVGElement."
1212
- );
1213
- }
791
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onkeypress");
1214
792
 
1215
793
  if (!utils.isObject(V)) {
1216
794
  V = null;
@@ -1223,23 +801,12 @@ exports.install = (globalObject, globalNames) => {
1223
801
  }
1224
802
 
1225
803
  get onkeyup() {
1226
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1227
- if ($impl === null) {
1228
- throw new globalObject.TypeError(
1229
- "'get onkeyup' called on an object that is not a valid instance of SVGElement."
1230
- );
1231
- }
1232
-
804
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onkeyup");
1233
805
  return utils.tryWrapperForImpl($impl["onkeyup"]);
1234
806
  }
1235
807
 
1236
808
  set onkeyup(V) {
1237
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1238
- if ($impl === null) {
1239
- throw new globalObject.TypeError(
1240
- "'set onkeyup' called on an object that is not a valid instance of SVGElement."
1241
- );
1242
- }
809
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onkeyup");
1243
810
 
1244
811
  if (!utils.isObject(V)) {
1245
812
  V = null;
@@ -1252,23 +819,12 @@ exports.install = (globalObject, globalNames) => {
1252
819
  }
1253
820
 
1254
821
  get onload() {
1255
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1256
- if ($impl === null) {
1257
- throw new globalObject.TypeError(
1258
- "'get onload' called on an object that is not a valid instance of SVGElement."
1259
- );
1260
- }
1261
-
822
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onload");
1262
823
  return utils.tryWrapperForImpl($impl["onload"]);
1263
824
  }
1264
825
 
1265
826
  set onload(V) {
1266
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1267
- if ($impl === null) {
1268
- throw new globalObject.TypeError(
1269
- "'set onload' called on an object that is not a valid instance of SVGElement."
1270
- );
1271
- }
827
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onload");
1272
828
 
1273
829
  if (!utils.isObject(V)) {
1274
830
  V = null;
@@ -1281,23 +837,12 @@ exports.install = (globalObject, globalNames) => {
1281
837
  }
1282
838
 
1283
839
  get onloadeddata() {
1284
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1285
- if ($impl === null) {
1286
- throw new globalObject.TypeError(
1287
- "'get onloadeddata' called on an object that is not a valid instance of SVGElement."
1288
- );
1289
- }
1290
-
840
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onloadeddata");
1291
841
  return utils.tryWrapperForImpl($impl["onloadeddata"]);
1292
842
  }
1293
843
 
1294
844
  set onloadeddata(V) {
1295
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1296
- if ($impl === null) {
1297
- throw new globalObject.TypeError(
1298
- "'set onloadeddata' called on an object that is not a valid instance of SVGElement."
1299
- );
1300
- }
845
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onloadeddata");
1301
846
 
1302
847
  if (!utils.isObject(V)) {
1303
848
  V = null;
@@ -1310,23 +855,12 @@ exports.install = (globalObject, globalNames) => {
1310
855
  }
1311
856
 
1312
857
  get onloadedmetadata() {
1313
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1314
- if ($impl === null) {
1315
- throw new globalObject.TypeError(
1316
- "'get onloadedmetadata' called on an object that is not a valid instance of SVGElement."
1317
- );
1318
- }
1319
-
858
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onloadedmetadata");
1320
859
  return utils.tryWrapperForImpl($impl["onloadedmetadata"]);
1321
860
  }
1322
861
 
1323
862
  set onloadedmetadata(V) {
1324
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1325
- if ($impl === null) {
1326
- throw new globalObject.TypeError(
1327
- "'set onloadedmetadata' called on an object that is not a valid instance of SVGElement."
1328
- );
1329
- }
863
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onloadedmetadata");
1330
864
 
1331
865
  if (!utils.isObject(V)) {
1332
866
  V = null;
@@ -1339,23 +873,12 @@ exports.install = (globalObject, globalNames) => {
1339
873
  }
1340
874
 
1341
875
  get onloadstart() {
1342
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1343
- if ($impl === null) {
1344
- throw new globalObject.TypeError(
1345
- "'get onloadstart' called on an object that is not a valid instance of SVGElement."
1346
- );
1347
- }
1348
-
876
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onloadstart");
1349
877
  return utils.tryWrapperForImpl($impl["onloadstart"]);
1350
878
  }
1351
879
 
1352
880
  set onloadstart(V) {
1353
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1354
- if ($impl === null) {
1355
- throw new globalObject.TypeError(
1356
- "'set onloadstart' called on an object that is not a valid instance of SVGElement."
1357
- );
1358
- }
881
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onloadstart");
1359
882
 
1360
883
  if (!utils.isObject(V)) {
1361
884
  V = null;
@@ -1368,23 +891,12 @@ exports.install = (globalObject, globalNames) => {
1368
891
  }
1369
892
 
1370
893
  get onmousedown() {
1371
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1372
- if ($impl === null) {
1373
- throw new globalObject.TypeError(
1374
- "'get onmousedown' called on an object that is not a valid instance of SVGElement."
1375
- );
1376
- }
1377
-
894
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onmousedown");
1378
895
  return utils.tryWrapperForImpl($impl["onmousedown"]);
1379
896
  }
1380
897
 
1381
898
  set onmousedown(V) {
1382
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1383
- if ($impl === null) {
1384
- throw new globalObject.TypeError(
1385
- "'set onmousedown' called on an object that is not a valid instance of SVGElement."
1386
- );
1387
- }
899
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onmousedown");
1388
900
 
1389
901
  if (!utils.isObject(V)) {
1390
902
  V = null;
@@ -1447,23 +959,12 @@ exports.install = (globalObject, globalNames) => {
1447
959
  }
1448
960
 
1449
961
  get onmousemove() {
1450
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1451
- if ($impl === null) {
1452
- throw new globalObject.TypeError(
1453
- "'get onmousemove' called on an object that is not a valid instance of SVGElement."
1454
- );
1455
- }
1456
-
962
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onmousemove");
1457
963
  return utils.tryWrapperForImpl($impl["onmousemove"]);
1458
964
  }
1459
965
 
1460
966
  set onmousemove(V) {
1461
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1462
- if ($impl === null) {
1463
- throw new globalObject.TypeError(
1464
- "'set onmousemove' called on an object that is not a valid instance of SVGElement."
1465
- );
1466
- }
967
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onmousemove");
1467
968
 
1468
969
  if (!utils.isObject(V)) {
1469
970
  V = null;
@@ -1476,23 +977,12 @@ exports.install = (globalObject, globalNames) => {
1476
977
  }
1477
978
 
1478
979
  get onmouseout() {
1479
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1480
- if ($impl === null) {
1481
- throw new globalObject.TypeError(
1482
- "'get onmouseout' called on an object that is not a valid instance of SVGElement."
1483
- );
1484
- }
1485
-
980
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onmouseout");
1486
981
  return utils.tryWrapperForImpl($impl["onmouseout"]);
1487
982
  }
1488
983
 
1489
984
  set onmouseout(V) {
1490
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1491
- if ($impl === null) {
1492
- throw new globalObject.TypeError(
1493
- "'set onmouseout' called on an object that is not a valid instance of SVGElement."
1494
- );
1495
- }
985
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onmouseout");
1496
986
 
1497
987
  if (!utils.isObject(V)) {
1498
988
  V = null;
@@ -1505,23 +995,12 @@ exports.install = (globalObject, globalNames) => {
1505
995
  }
1506
996
 
1507
997
  get onmouseover() {
1508
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1509
- if ($impl === null) {
1510
- throw new globalObject.TypeError(
1511
- "'get onmouseover' called on an object that is not a valid instance of SVGElement."
1512
- );
1513
- }
1514
-
998
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onmouseover");
1515
999
  return utils.tryWrapperForImpl($impl["onmouseover"]);
1516
1000
  }
1517
1001
 
1518
1002
  set onmouseover(V) {
1519
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1520
- if ($impl === null) {
1521
- throw new globalObject.TypeError(
1522
- "'set onmouseover' called on an object that is not a valid instance of SVGElement."
1523
- );
1524
- }
1003
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onmouseover");
1525
1004
 
1526
1005
  if (!utils.isObject(V)) {
1527
1006
  V = null;
@@ -1534,23 +1013,12 @@ exports.install = (globalObject, globalNames) => {
1534
1013
  }
1535
1014
 
1536
1015
  get onmouseup() {
1537
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1538
- if ($impl === null) {
1539
- throw new globalObject.TypeError(
1540
- "'get onmouseup' called on an object that is not a valid instance of SVGElement."
1541
- );
1542
- }
1543
-
1016
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onmouseup");
1544
1017
  return utils.tryWrapperForImpl($impl["onmouseup"]);
1545
1018
  }
1546
1019
 
1547
1020
  set onmouseup(V) {
1548
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1549
- if ($impl === null) {
1550
- throw new globalObject.TypeError(
1551
- "'set onmouseup' called on an object that is not a valid instance of SVGElement."
1552
- );
1553
- }
1021
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onmouseup");
1554
1022
 
1555
1023
  if (!utils.isObject(V)) {
1556
1024
  V = null;
@@ -1563,23 +1031,12 @@ exports.install = (globalObject, globalNames) => {
1563
1031
  }
1564
1032
 
1565
1033
  get onpaste() {
1566
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1567
- if ($impl === null) {
1568
- throw new globalObject.TypeError(
1569
- "'get onpaste' called on an object that is not a valid instance of SVGElement."
1570
- );
1571
- }
1572
-
1034
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onpaste");
1573
1035
  return utils.tryWrapperForImpl($impl["onpaste"]);
1574
1036
  }
1575
1037
 
1576
1038
  set onpaste(V) {
1577
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1578
- if ($impl === null) {
1579
- throw new globalObject.TypeError(
1580
- "'set onpaste' called on an object that is not a valid instance of SVGElement."
1581
- );
1582
- }
1039
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onpaste");
1583
1040
 
1584
1041
  if (!utils.isObject(V)) {
1585
1042
  V = null;
@@ -1592,23 +1049,12 @@ exports.install = (globalObject, globalNames) => {
1592
1049
  }
1593
1050
 
1594
1051
  get onpause() {
1595
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1596
- if ($impl === null) {
1597
- throw new globalObject.TypeError(
1598
- "'get onpause' called on an object that is not a valid instance of SVGElement."
1599
- );
1600
- }
1601
-
1052
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onpause");
1602
1053
  return utils.tryWrapperForImpl($impl["onpause"]);
1603
1054
  }
1604
1055
 
1605
1056
  set onpause(V) {
1606
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1607
- if ($impl === null) {
1608
- throw new globalObject.TypeError(
1609
- "'set onpause' called on an object that is not a valid instance of SVGElement."
1610
- );
1611
- }
1057
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onpause");
1612
1058
 
1613
1059
  if (!utils.isObject(V)) {
1614
1060
  V = null;
@@ -1621,23 +1067,12 @@ exports.install = (globalObject, globalNames) => {
1621
1067
  }
1622
1068
 
1623
1069
  get onplay() {
1624
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1625
- if ($impl === null) {
1626
- throw new globalObject.TypeError(
1627
- "'get onplay' called on an object that is not a valid instance of SVGElement."
1628
- );
1629
- }
1630
-
1070
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onplay");
1631
1071
  return utils.tryWrapperForImpl($impl["onplay"]);
1632
1072
  }
1633
1073
 
1634
1074
  set onplay(V) {
1635
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1636
- if ($impl === null) {
1637
- throw new globalObject.TypeError(
1638
- "'set onplay' called on an object that is not a valid instance of SVGElement."
1639
- );
1640
- }
1075
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onplay");
1641
1076
 
1642
1077
  if (!utils.isObject(V)) {
1643
1078
  V = null;
@@ -1650,23 +1085,12 @@ exports.install = (globalObject, globalNames) => {
1650
1085
  }
1651
1086
 
1652
1087
  get onplaying() {
1653
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1654
- if ($impl === null) {
1655
- throw new globalObject.TypeError(
1656
- "'get onplaying' called on an object that is not a valid instance of SVGElement."
1657
- );
1658
- }
1659
-
1088
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onplaying");
1660
1089
  return utils.tryWrapperForImpl($impl["onplaying"]);
1661
1090
  }
1662
1091
 
1663
1092
  set onplaying(V) {
1664
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1665
- if ($impl === null) {
1666
- throw new globalObject.TypeError(
1667
- "'set onplaying' called on an object that is not a valid instance of SVGElement."
1668
- );
1669
- }
1093
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onplaying");
1670
1094
 
1671
1095
  if (!utils.isObject(V)) {
1672
1096
  V = null;
@@ -1679,23 +1103,12 @@ exports.install = (globalObject, globalNames) => {
1679
1103
  }
1680
1104
 
1681
1105
  get onprogress() {
1682
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1683
- if ($impl === null) {
1684
- throw new globalObject.TypeError(
1685
- "'get onprogress' called on an object that is not a valid instance of SVGElement."
1686
- );
1687
- }
1688
-
1106
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onprogress");
1689
1107
  return utils.tryWrapperForImpl($impl["onprogress"]);
1690
1108
  }
1691
1109
 
1692
1110
  set onprogress(V) {
1693
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1694
- if ($impl === null) {
1695
- throw new globalObject.TypeError(
1696
- "'set onprogress' called on an object that is not a valid instance of SVGElement."
1697
- );
1698
- }
1111
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onprogress");
1699
1112
 
1700
1113
  if (!utils.isObject(V)) {
1701
1114
  V = null;
@@ -1708,23 +1121,12 @@ exports.install = (globalObject, globalNames) => {
1708
1121
  }
1709
1122
 
1710
1123
  get onratechange() {
1711
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1712
- if ($impl === null) {
1713
- throw new globalObject.TypeError(
1714
- "'get onratechange' called on an object that is not a valid instance of SVGElement."
1715
- );
1716
- }
1717
-
1124
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onratechange");
1718
1125
  return utils.tryWrapperForImpl($impl["onratechange"]);
1719
1126
  }
1720
1127
 
1721
1128
  set onratechange(V) {
1722
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1723
- if ($impl === null) {
1724
- throw new globalObject.TypeError(
1725
- "'set onratechange' called on an object that is not a valid instance of SVGElement."
1726
- );
1727
- }
1129
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onratechange");
1728
1130
 
1729
1131
  if (!utils.isObject(V)) {
1730
1132
  V = null;
@@ -1737,23 +1139,12 @@ exports.install = (globalObject, globalNames) => {
1737
1139
  }
1738
1140
 
1739
1141
  get onreset() {
1740
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1741
- if ($impl === null) {
1742
- throw new globalObject.TypeError(
1743
- "'get onreset' called on an object that is not a valid instance of SVGElement."
1744
- );
1745
- }
1746
-
1142
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onreset");
1747
1143
  return utils.tryWrapperForImpl($impl["onreset"]);
1748
1144
  }
1749
1145
 
1750
1146
  set onreset(V) {
1751
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1752
- if ($impl === null) {
1753
- throw new globalObject.TypeError(
1754
- "'set onreset' called on an object that is not a valid instance of SVGElement."
1755
- );
1756
- }
1147
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onreset");
1757
1148
 
1758
1149
  if (!utils.isObject(V)) {
1759
1150
  V = null;
@@ -1766,23 +1157,12 @@ exports.install = (globalObject, globalNames) => {
1766
1157
  }
1767
1158
 
1768
1159
  get onresize() {
1769
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1770
- if ($impl === null) {
1771
- throw new globalObject.TypeError(
1772
- "'get onresize' called on an object that is not a valid instance of SVGElement."
1773
- );
1774
- }
1775
-
1160
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onresize");
1776
1161
  return utils.tryWrapperForImpl($impl["onresize"]);
1777
1162
  }
1778
1163
 
1779
1164
  set onresize(V) {
1780
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1781
- if ($impl === null) {
1782
- throw new globalObject.TypeError(
1783
- "'set onresize' called on an object that is not a valid instance of SVGElement."
1784
- );
1785
- }
1165
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onresize");
1786
1166
 
1787
1167
  if (!utils.isObject(V)) {
1788
1168
  V = null;
@@ -1795,23 +1175,12 @@ exports.install = (globalObject, globalNames) => {
1795
1175
  }
1796
1176
 
1797
1177
  get onscroll() {
1798
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1799
- if ($impl === null) {
1800
- throw new globalObject.TypeError(
1801
- "'get onscroll' called on an object that is not a valid instance of SVGElement."
1802
- );
1803
- }
1804
-
1178
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onscroll");
1805
1179
  return utils.tryWrapperForImpl($impl["onscroll"]);
1806
1180
  }
1807
1181
 
1808
1182
  set onscroll(V) {
1809
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1810
- if ($impl === null) {
1811
- throw new globalObject.TypeError(
1812
- "'set onscroll' called on an object that is not a valid instance of SVGElement."
1813
- );
1814
- }
1183
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onscroll");
1815
1184
 
1816
1185
  if (!utils.isObject(V)) {
1817
1186
  V = null;
@@ -1824,23 +1193,12 @@ exports.install = (globalObject, globalNames) => {
1824
1193
  }
1825
1194
 
1826
1195
  get onscrollend() {
1827
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1828
- if ($impl === null) {
1829
- throw new globalObject.TypeError(
1830
- "'get onscrollend' called on an object that is not a valid instance of SVGElement."
1831
- );
1832
- }
1833
-
1196
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onscrollend");
1834
1197
  return utils.tryWrapperForImpl($impl["onscrollend"]);
1835
1198
  }
1836
1199
 
1837
1200
  set onscrollend(V) {
1838
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1839
- if ($impl === null) {
1840
- throw new globalObject.TypeError(
1841
- "'set onscrollend' called on an object that is not a valid instance of SVGElement."
1842
- );
1843
- }
1201
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onscrollend");
1844
1202
 
1845
1203
  if (!utils.isObject(V)) {
1846
1204
  V = null;
@@ -1853,23 +1211,12 @@ exports.install = (globalObject, globalNames) => {
1853
1211
  }
1854
1212
 
1855
1213
  get onsecuritypolicyviolation() {
1856
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1857
- if ($impl === null) {
1858
- throw new globalObject.TypeError(
1859
- "'get onsecuritypolicyviolation' called on an object that is not a valid instance of SVGElement."
1860
- );
1861
- }
1862
-
1214
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onsecuritypolicyviolation");
1863
1215
  return utils.tryWrapperForImpl($impl["onsecuritypolicyviolation"]);
1864
1216
  }
1865
1217
 
1866
1218
  set onsecuritypolicyviolation(V) {
1867
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1868
- if ($impl === null) {
1869
- throw new globalObject.TypeError(
1870
- "'set onsecuritypolicyviolation' called on an object that is not a valid instance of SVGElement."
1871
- );
1872
- }
1219
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onsecuritypolicyviolation");
1873
1220
 
1874
1221
  if (!utils.isObject(V)) {
1875
1222
  V = null;
@@ -1882,23 +1229,12 @@ exports.install = (globalObject, globalNames) => {
1882
1229
  }
1883
1230
 
1884
1231
  get onseeked() {
1885
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1886
- if ($impl === null) {
1887
- throw new globalObject.TypeError(
1888
- "'get onseeked' called on an object that is not a valid instance of SVGElement."
1889
- );
1890
- }
1891
-
1232
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onseeked");
1892
1233
  return utils.tryWrapperForImpl($impl["onseeked"]);
1893
1234
  }
1894
1235
 
1895
1236
  set onseeked(V) {
1896
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1897
- if ($impl === null) {
1898
- throw new globalObject.TypeError(
1899
- "'set onseeked' called on an object that is not a valid instance of SVGElement."
1900
- );
1901
- }
1237
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onseeked");
1902
1238
 
1903
1239
  if (!utils.isObject(V)) {
1904
1240
  V = null;
@@ -1911,23 +1247,12 @@ exports.install = (globalObject, globalNames) => {
1911
1247
  }
1912
1248
 
1913
1249
  get onseeking() {
1914
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1915
- if ($impl === null) {
1916
- throw new globalObject.TypeError(
1917
- "'get onseeking' called on an object that is not a valid instance of SVGElement."
1918
- );
1919
- }
1920
-
1250
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onseeking");
1921
1251
  return utils.tryWrapperForImpl($impl["onseeking"]);
1922
1252
  }
1923
1253
 
1924
1254
  set onseeking(V) {
1925
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1926
- if ($impl === null) {
1927
- throw new globalObject.TypeError(
1928
- "'set onseeking' called on an object that is not a valid instance of SVGElement."
1929
- );
1930
- }
1255
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onseeking");
1931
1256
 
1932
1257
  if (!utils.isObject(V)) {
1933
1258
  V = null;
@@ -1940,23 +1265,12 @@ exports.install = (globalObject, globalNames) => {
1940
1265
  }
1941
1266
 
1942
1267
  get onselect() {
1943
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1944
- if ($impl === null) {
1945
- throw new globalObject.TypeError(
1946
- "'get onselect' called on an object that is not a valid instance of SVGElement."
1947
- );
1948
- }
1949
-
1268
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onselect");
1950
1269
  return utils.tryWrapperForImpl($impl["onselect"]);
1951
1270
  }
1952
1271
 
1953
1272
  set onselect(V) {
1954
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1955
- if ($impl === null) {
1956
- throw new globalObject.TypeError(
1957
- "'set onselect' called on an object that is not a valid instance of SVGElement."
1958
- );
1959
- }
1273
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onselect");
1960
1274
 
1961
1275
  if (!utils.isObject(V)) {
1962
1276
  V = null;
@@ -1969,23 +1283,12 @@ exports.install = (globalObject, globalNames) => {
1969
1283
  }
1970
1284
 
1971
1285
  get onslotchange() {
1972
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1973
- if ($impl === null) {
1974
- throw new globalObject.TypeError(
1975
- "'get onslotchange' called on an object that is not a valid instance of SVGElement."
1976
- );
1977
- }
1978
-
1286
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onslotchange");
1979
1287
  return utils.tryWrapperForImpl($impl["onslotchange"]);
1980
1288
  }
1981
1289
 
1982
1290
  set onslotchange(V) {
1983
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
1984
- if ($impl === null) {
1985
- throw new globalObject.TypeError(
1986
- "'set onslotchange' called on an object that is not a valid instance of SVGElement."
1987
- );
1988
- }
1291
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onslotchange");
1989
1292
 
1990
1293
  if (!utils.isObject(V)) {
1991
1294
  V = null;
@@ -1998,23 +1301,12 @@ exports.install = (globalObject, globalNames) => {
1998
1301
  }
1999
1302
 
2000
1303
  get onstalled() {
2001
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2002
- if ($impl === null) {
2003
- throw new globalObject.TypeError(
2004
- "'get onstalled' called on an object that is not a valid instance of SVGElement."
2005
- );
2006
- }
2007
-
1304
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onstalled");
2008
1305
  return utils.tryWrapperForImpl($impl["onstalled"]);
2009
1306
  }
2010
1307
 
2011
1308
  set onstalled(V) {
2012
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2013
- if ($impl === null) {
2014
- throw new globalObject.TypeError(
2015
- "'set onstalled' called on an object that is not a valid instance of SVGElement."
2016
- );
2017
- }
1309
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onstalled");
2018
1310
 
2019
1311
  if (!utils.isObject(V)) {
2020
1312
  V = null;
@@ -2027,23 +1319,12 @@ exports.install = (globalObject, globalNames) => {
2027
1319
  }
2028
1320
 
2029
1321
  get onsubmit() {
2030
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2031
- if ($impl === null) {
2032
- throw new globalObject.TypeError(
2033
- "'get onsubmit' called on an object that is not a valid instance of SVGElement."
2034
- );
2035
- }
2036
-
1322
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onsubmit");
2037
1323
  return utils.tryWrapperForImpl($impl["onsubmit"]);
2038
1324
  }
2039
1325
 
2040
1326
  set onsubmit(V) {
2041
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2042
- if ($impl === null) {
2043
- throw new globalObject.TypeError(
2044
- "'set onsubmit' called on an object that is not a valid instance of SVGElement."
2045
- );
2046
- }
1327
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onsubmit");
2047
1328
 
2048
1329
  if (!utils.isObject(V)) {
2049
1330
  V = null;
@@ -2056,23 +1337,12 @@ exports.install = (globalObject, globalNames) => {
2056
1337
  }
2057
1338
 
2058
1339
  get onsuspend() {
2059
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2060
- if ($impl === null) {
2061
- throw new globalObject.TypeError(
2062
- "'get onsuspend' called on an object that is not a valid instance of SVGElement."
2063
- );
2064
- }
2065
-
1340
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onsuspend");
2066
1341
  return utils.tryWrapperForImpl($impl["onsuspend"]);
2067
1342
  }
2068
1343
 
2069
1344
  set onsuspend(V) {
2070
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2071
- if ($impl === null) {
2072
- throw new globalObject.TypeError(
2073
- "'set onsuspend' called on an object that is not a valid instance of SVGElement."
2074
- );
2075
- }
1345
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onsuspend");
2076
1346
 
2077
1347
  if (!utils.isObject(V)) {
2078
1348
  V = null;
@@ -2085,23 +1355,12 @@ exports.install = (globalObject, globalNames) => {
2085
1355
  }
2086
1356
 
2087
1357
  get ontimeupdate() {
2088
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2089
- if ($impl === null) {
2090
- throw new globalObject.TypeError(
2091
- "'get ontimeupdate' called on an object that is not a valid instance of SVGElement."
2092
- );
2093
- }
2094
-
1358
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get ontimeupdate");
2095
1359
  return utils.tryWrapperForImpl($impl["ontimeupdate"]);
2096
1360
  }
2097
1361
 
2098
1362
  set ontimeupdate(V) {
2099
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2100
- if ($impl === null) {
2101
- throw new globalObject.TypeError(
2102
- "'set ontimeupdate' called on an object that is not a valid instance of SVGElement."
2103
- );
2104
- }
1363
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set ontimeupdate");
2105
1364
 
2106
1365
  if (!utils.isObject(V)) {
2107
1366
  V = null;
@@ -2114,23 +1373,12 @@ exports.install = (globalObject, globalNames) => {
2114
1373
  }
2115
1374
 
2116
1375
  get ontoggle() {
2117
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2118
- if ($impl === null) {
2119
- throw new globalObject.TypeError(
2120
- "'get ontoggle' called on an object that is not a valid instance of SVGElement."
2121
- );
2122
- }
2123
-
1376
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get ontoggle");
2124
1377
  return utils.tryWrapperForImpl($impl["ontoggle"]);
2125
1378
  }
2126
1379
 
2127
1380
  set ontoggle(V) {
2128
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2129
- if ($impl === null) {
2130
- throw new globalObject.TypeError(
2131
- "'set ontoggle' called on an object that is not a valid instance of SVGElement."
2132
- );
2133
- }
1381
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set ontoggle");
2134
1382
 
2135
1383
  if (!utils.isObject(V)) {
2136
1384
  V = null;
@@ -2143,23 +1391,12 @@ exports.install = (globalObject, globalNames) => {
2143
1391
  }
2144
1392
 
2145
1393
  get onvolumechange() {
2146
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2147
- if ($impl === null) {
2148
- throw new globalObject.TypeError(
2149
- "'get onvolumechange' called on an object that is not a valid instance of SVGElement."
2150
- );
2151
- }
2152
-
1394
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onvolumechange");
2153
1395
  return utils.tryWrapperForImpl($impl["onvolumechange"]);
2154
1396
  }
2155
1397
 
2156
1398
  set onvolumechange(V) {
2157
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2158
- if ($impl === null) {
2159
- throw new globalObject.TypeError(
2160
- "'set onvolumechange' called on an object that is not a valid instance of SVGElement."
2161
- );
2162
- }
1399
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onvolumechange");
2163
1400
 
2164
1401
  if (!utils.isObject(V)) {
2165
1402
  V = null;
@@ -2172,23 +1409,12 @@ exports.install = (globalObject, globalNames) => {
2172
1409
  }
2173
1410
 
2174
1411
  get onwaiting() {
2175
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2176
- if ($impl === null) {
2177
- throw new globalObject.TypeError(
2178
- "'get onwaiting' called on an object that is not a valid instance of SVGElement."
2179
- );
2180
- }
2181
-
1412
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onwaiting");
2182
1413
  return utils.tryWrapperForImpl($impl["onwaiting"]);
2183
1414
  }
2184
1415
 
2185
1416
  set onwaiting(V) {
2186
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2187
- if ($impl === null) {
2188
- throw new globalObject.TypeError(
2189
- "'set onwaiting' called on an object that is not a valid instance of SVGElement."
2190
- );
2191
- }
1417
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onwaiting");
2192
1418
 
2193
1419
  if (!utils.isObject(V)) {
2194
1420
  V = null;
@@ -2201,23 +1427,12 @@ exports.install = (globalObject, globalNames) => {
2201
1427
  }
2202
1428
 
2203
1429
  get onwebkitanimationend() {
2204
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2205
- if ($impl === null) {
2206
- throw new globalObject.TypeError(
2207
- "'get onwebkitanimationend' called on an object that is not a valid instance of SVGElement."
2208
- );
2209
- }
2210
-
1430
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onwebkitanimationend");
2211
1431
  return utils.tryWrapperForImpl($impl["onwebkitanimationend"]);
2212
1432
  }
2213
1433
 
2214
1434
  set onwebkitanimationend(V) {
2215
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2216
- if ($impl === null) {
2217
- throw new globalObject.TypeError(
2218
- "'set onwebkitanimationend' called on an object that is not a valid instance of SVGElement."
2219
- );
2220
- }
1435
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onwebkitanimationend");
2221
1436
 
2222
1437
  if (!utils.isObject(V)) {
2223
1438
  V = null;
@@ -2230,23 +1445,12 @@ exports.install = (globalObject, globalNames) => {
2230
1445
  }
2231
1446
 
2232
1447
  get onwebkitanimationiteration() {
2233
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2234
- if ($impl === null) {
2235
- throw new globalObject.TypeError(
2236
- "'get onwebkitanimationiteration' called on an object that is not a valid instance of SVGElement."
2237
- );
2238
- }
2239
-
1448
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onwebkitanimationiteration");
2240
1449
  return utils.tryWrapperForImpl($impl["onwebkitanimationiteration"]);
2241
1450
  }
2242
1451
 
2243
1452
  set onwebkitanimationiteration(V) {
2244
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2245
- if ($impl === null) {
2246
- throw new globalObject.TypeError(
2247
- "'set onwebkitanimationiteration' called on an object that is not a valid instance of SVGElement."
2248
- );
2249
- }
1453
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onwebkitanimationiteration");
2250
1454
 
2251
1455
  if (!utils.isObject(V)) {
2252
1456
  V = null;
@@ -2259,23 +1463,12 @@ exports.install = (globalObject, globalNames) => {
2259
1463
  }
2260
1464
 
2261
1465
  get onwebkitanimationstart() {
2262
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2263
- if ($impl === null) {
2264
- throw new globalObject.TypeError(
2265
- "'get onwebkitanimationstart' called on an object that is not a valid instance of SVGElement."
2266
- );
2267
- }
2268
-
1466
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onwebkitanimationstart");
2269
1467
  return utils.tryWrapperForImpl($impl["onwebkitanimationstart"]);
2270
1468
  }
2271
1469
 
2272
1470
  set onwebkitanimationstart(V) {
2273
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2274
- if ($impl === null) {
2275
- throw new globalObject.TypeError(
2276
- "'set onwebkitanimationstart' called on an object that is not a valid instance of SVGElement."
2277
- );
2278
- }
1471
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onwebkitanimationstart");
2279
1472
 
2280
1473
  if (!utils.isObject(V)) {
2281
1474
  V = null;
@@ -2288,23 +1481,12 @@ exports.install = (globalObject, globalNames) => {
2288
1481
  }
2289
1482
 
2290
1483
  get onwebkittransitionend() {
2291
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2292
- if ($impl === null) {
2293
- throw new globalObject.TypeError(
2294
- "'get onwebkittransitionend' called on an object that is not a valid instance of SVGElement."
2295
- );
2296
- }
2297
-
1484
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onwebkittransitionend");
2298
1485
  return utils.tryWrapperForImpl($impl["onwebkittransitionend"]);
2299
1486
  }
2300
1487
 
2301
1488
  set onwebkittransitionend(V) {
2302
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2303
- if ($impl === null) {
2304
- throw new globalObject.TypeError(
2305
- "'set onwebkittransitionend' called on an object that is not a valid instance of SVGElement."
2306
- );
2307
- }
1489
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onwebkittransitionend");
2308
1490
 
2309
1491
  if (!utils.isObject(V)) {
2310
1492
  V = null;
@@ -2317,23 +1499,12 @@ exports.install = (globalObject, globalNames) => {
2317
1499
  }
2318
1500
 
2319
1501
  get onwheel() {
2320
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2321
- if ($impl === null) {
2322
- throw new globalObject.TypeError(
2323
- "'get onwheel' called on an object that is not a valid instance of SVGElement."
2324
- );
2325
- }
2326
-
1502
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onwheel");
2327
1503
  return utils.tryWrapperForImpl($impl["onwheel"]);
2328
1504
  }
2329
1505
 
2330
1506
  set onwheel(V) {
2331
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2332
- if ($impl === null) {
2333
- throw new globalObject.TypeError(
2334
- "'set onwheel' called on an object that is not a valid instance of SVGElement."
2335
- );
2336
- }
1507
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onwheel");
2337
1508
 
2338
1509
  if (!utils.isObject(V)) {
2339
1510
  V = null;
@@ -2346,23 +1517,12 @@ exports.install = (globalObject, globalNames) => {
2346
1517
  }
2347
1518
 
2348
1519
  get ontouchstart() {
2349
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2350
- if ($impl === null) {
2351
- throw new globalObject.TypeError(
2352
- "'get ontouchstart' called on an object that is not a valid instance of SVGElement."
2353
- );
2354
- }
2355
-
1520
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get ontouchstart");
2356
1521
  return utils.tryWrapperForImpl($impl["ontouchstart"]);
2357
1522
  }
2358
1523
 
2359
1524
  set ontouchstart(V) {
2360
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2361
- if ($impl === null) {
2362
- throw new globalObject.TypeError(
2363
- "'set ontouchstart' called on an object that is not a valid instance of SVGElement."
2364
- );
2365
- }
1525
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set ontouchstart");
2366
1526
 
2367
1527
  if (!utils.isObject(V)) {
2368
1528
  V = null;
@@ -2375,23 +1535,12 @@ exports.install = (globalObject, globalNames) => {
2375
1535
  }
2376
1536
 
2377
1537
  get ontouchend() {
2378
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2379
- if ($impl === null) {
2380
- throw new globalObject.TypeError(
2381
- "'get ontouchend' called on an object that is not a valid instance of SVGElement."
2382
- );
2383
- }
2384
-
1538
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get ontouchend");
2385
1539
  return utils.tryWrapperForImpl($impl["ontouchend"]);
2386
1540
  }
2387
1541
 
2388
1542
  set ontouchend(V) {
2389
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2390
- if ($impl === null) {
2391
- throw new globalObject.TypeError(
2392
- "'set ontouchend' called on an object that is not a valid instance of SVGElement."
2393
- );
2394
- }
1543
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set ontouchend");
2395
1544
 
2396
1545
  if (!utils.isObject(V)) {
2397
1546
  V = null;
@@ -2404,23 +1553,12 @@ exports.install = (globalObject, globalNames) => {
2404
1553
  }
2405
1554
 
2406
1555
  get ontouchmove() {
2407
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2408
- if ($impl === null) {
2409
- throw new globalObject.TypeError(
2410
- "'get ontouchmove' called on an object that is not a valid instance of SVGElement."
2411
- );
2412
- }
2413
-
1556
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get ontouchmove");
2414
1557
  return utils.tryWrapperForImpl($impl["ontouchmove"]);
2415
1558
  }
2416
1559
 
2417
1560
  set ontouchmove(V) {
2418
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2419
- if ($impl === null) {
2420
- throw new globalObject.TypeError(
2421
- "'set ontouchmove' called on an object that is not a valid instance of SVGElement."
2422
- );
2423
- }
1561
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set ontouchmove");
2424
1562
 
2425
1563
  if (!utils.isObject(V)) {
2426
1564
  V = null;
@@ -2433,23 +1571,12 @@ exports.install = (globalObject, globalNames) => {
2433
1571
  }
2434
1572
 
2435
1573
  get ontouchcancel() {
2436
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2437
- if ($impl === null) {
2438
- throw new globalObject.TypeError(
2439
- "'get ontouchcancel' called on an object that is not a valid instance of SVGElement."
2440
- );
2441
- }
2442
-
1574
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get ontouchcancel");
2443
1575
  return utils.tryWrapperForImpl($impl["ontouchcancel"]);
2444
1576
  }
2445
1577
 
2446
1578
  set ontouchcancel(V) {
2447
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2448
- if ($impl === null) {
2449
- throw new globalObject.TypeError(
2450
- "'set ontouchcancel' called on an object that is not a valid instance of SVGElement."
2451
- );
2452
- }
1579
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set ontouchcancel");
2453
1580
 
2454
1581
  if (!utils.isObject(V)) {
2455
1582
  V = null;
@@ -2462,23 +1589,12 @@ exports.install = (globalObject, globalNames) => {
2462
1589
  }
2463
1590
 
2464
1591
  get onpointerover() {
2465
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2466
- if ($impl === null) {
2467
- throw new globalObject.TypeError(
2468
- "'get onpointerover' called on an object that is not a valid instance of SVGElement."
2469
- );
2470
- }
2471
-
1592
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onpointerover");
2472
1593
  return utils.tryWrapperForImpl($impl["onpointerover"]);
2473
1594
  }
2474
1595
 
2475
1596
  set onpointerover(V) {
2476
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2477
- if ($impl === null) {
2478
- throw new globalObject.TypeError(
2479
- "'set onpointerover' called on an object that is not a valid instance of SVGElement."
2480
- );
2481
- }
1597
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onpointerover");
2482
1598
 
2483
1599
  if (!utils.isObject(V)) {
2484
1600
  V = null;
@@ -2491,23 +1607,12 @@ exports.install = (globalObject, globalNames) => {
2491
1607
  }
2492
1608
 
2493
1609
  get onpointerenter() {
2494
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2495
- if ($impl === null) {
2496
- throw new globalObject.TypeError(
2497
- "'get onpointerenter' called on an object that is not a valid instance of SVGElement."
2498
- );
2499
- }
2500
-
1610
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onpointerenter");
2501
1611
  return utils.tryWrapperForImpl($impl["onpointerenter"]);
2502
1612
  }
2503
1613
 
2504
1614
  set onpointerenter(V) {
2505
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2506
- if ($impl === null) {
2507
- throw new globalObject.TypeError(
2508
- "'set onpointerenter' called on an object that is not a valid instance of SVGElement."
2509
- );
2510
- }
1615
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onpointerenter");
2511
1616
 
2512
1617
  if (!utils.isObject(V)) {
2513
1618
  V = null;
@@ -2520,23 +1625,12 @@ exports.install = (globalObject, globalNames) => {
2520
1625
  }
2521
1626
 
2522
1627
  get onpointerdown() {
2523
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2524
- if ($impl === null) {
2525
- throw new globalObject.TypeError(
2526
- "'get onpointerdown' called on an object that is not a valid instance of SVGElement."
2527
- );
2528
- }
2529
-
1628
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onpointerdown");
2530
1629
  return utils.tryWrapperForImpl($impl["onpointerdown"]);
2531
1630
  }
2532
1631
 
2533
1632
  set onpointerdown(V) {
2534
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2535
- if ($impl === null) {
2536
- throw new globalObject.TypeError(
2537
- "'set onpointerdown' called on an object that is not a valid instance of SVGElement."
2538
- );
2539
- }
1633
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onpointerdown");
2540
1634
 
2541
1635
  if (!utils.isObject(V)) {
2542
1636
  V = null;
@@ -2549,23 +1643,12 @@ exports.install = (globalObject, globalNames) => {
2549
1643
  }
2550
1644
 
2551
1645
  get onpointermove() {
2552
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2553
- if ($impl === null) {
2554
- throw new globalObject.TypeError(
2555
- "'get onpointermove' called on an object that is not a valid instance of SVGElement."
2556
- );
2557
- }
2558
-
1646
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onpointermove");
2559
1647
  return utils.tryWrapperForImpl($impl["onpointermove"]);
2560
1648
  }
2561
1649
 
2562
1650
  set onpointermove(V) {
2563
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2564
- if ($impl === null) {
2565
- throw new globalObject.TypeError(
2566
- "'set onpointermove' called on an object that is not a valid instance of SVGElement."
2567
- );
2568
- }
1651
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onpointermove");
2569
1652
 
2570
1653
  if (!utils.isObject(V)) {
2571
1654
  V = null;
@@ -2578,23 +1661,12 @@ exports.install = (globalObject, globalNames) => {
2578
1661
  }
2579
1662
 
2580
1663
  get onpointerrawupdate() {
2581
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2582
- if ($impl === null) {
2583
- throw new globalObject.TypeError(
2584
- "'get onpointerrawupdate' called on an object that is not a valid instance of SVGElement."
2585
- );
2586
- }
2587
-
1664
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onpointerrawupdate");
2588
1665
  return utils.tryWrapperForImpl($impl["onpointerrawupdate"]);
2589
1666
  }
2590
1667
 
2591
1668
  set onpointerrawupdate(V) {
2592
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2593
- if ($impl === null) {
2594
- throw new globalObject.TypeError(
2595
- "'set onpointerrawupdate' called on an object that is not a valid instance of SVGElement."
2596
- );
2597
- }
1669
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onpointerrawupdate");
2598
1670
 
2599
1671
  if (!utils.isObject(V)) {
2600
1672
  V = null;
@@ -2607,23 +1679,12 @@ exports.install = (globalObject, globalNames) => {
2607
1679
  }
2608
1680
 
2609
1681
  get onpointerup() {
2610
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2611
- if ($impl === null) {
2612
- throw new globalObject.TypeError(
2613
- "'get onpointerup' called on an object that is not a valid instance of SVGElement."
2614
- );
2615
- }
2616
-
1682
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onpointerup");
2617
1683
  return utils.tryWrapperForImpl($impl["onpointerup"]);
2618
1684
  }
2619
1685
 
2620
1686
  set onpointerup(V) {
2621
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2622
- if ($impl === null) {
2623
- throw new globalObject.TypeError(
2624
- "'set onpointerup' called on an object that is not a valid instance of SVGElement."
2625
- );
2626
- }
1687
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onpointerup");
2627
1688
 
2628
1689
  if (!utils.isObject(V)) {
2629
1690
  V = null;
@@ -2636,23 +1697,12 @@ exports.install = (globalObject, globalNames) => {
2636
1697
  }
2637
1698
 
2638
1699
  get onpointercancel() {
2639
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2640
- if ($impl === null) {
2641
- throw new globalObject.TypeError(
2642
- "'get onpointercancel' called on an object that is not a valid instance of SVGElement."
2643
- );
2644
- }
2645
-
1700
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onpointercancel");
2646
1701
  return utils.tryWrapperForImpl($impl["onpointercancel"]);
2647
1702
  }
2648
1703
 
2649
1704
  set onpointercancel(V) {
2650
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2651
- if ($impl === null) {
2652
- throw new globalObject.TypeError(
2653
- "'set onpointercancel' called on an object that is not a valid instance of SVGElement."
2654
- );
2655
- }
1705
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onpointercancel");
2656
1706
 
2657
1707
  if (!utils.isObject(V)) {
2658
1708
  V = null;
@@ -2665,23 +1715,12 @@ exports.install = (globalObject, globalNames) => {
2665
1715
  }
2666
1716
 
2667
1717
  get onpointerout() {
2668
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2669
- if ($impl === null) {
2670
- throw new globalObject.TypeError(
2671
- "'get onpointerout' called on an object that is not a valid instance of SVGElement."
2672
- );
2673
- }
2674
-
1718
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onpointerout");
2675
1719
  return utils.tryWrapperForImpl($impl["onpointerout"]);
2676
1720
  }
2677
1721
 
2678
1722
  set onpointerout(V) {
2679
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2680
- if ($impl === null) {
2681
- throw new globalObject.TypeError(
2682
- "'set onpointerout' called on an object that is not a valid instance of SVGElement."
2683
- );
2684
- }
1723
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onpointerout");
2685
1724
 
2686
1725
  if (!utils.isObject(V)) {
2687
1726
  V = null;
@@ -2694,23 +1733,12 @@ exports.install = (globalObject, globalNames) => {
2694
1733
  }
2695
1734
 
2696
1735
  get onpointerleave() {
2697
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2698
- if ($impl === null) {
2699
- throw new globalObject.TypeError(
2700
- "'get onpointerleave' called on an object that is not a valid instance of SVGElement."
2701
- );
2702
- }
2703
-
1736
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onpointerleave");
2704
1737
  return utils.tryWrapperForImpl($impl["onpointerleave"]);
2705
1738
  }
2706
1739
 
2707
1740
  set onpointerleave(V) {
2708
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2709
- if ($impl === null) {
2710
- throw new globalObject.TypeError(
2711
- "'set onpointerleave' called on an object that is not a valid instance of SVGElement."
2712
- );
2713
- }
1741
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onpointerleave");
2714
1742
 
2715
1743
  if (!utils.isObject(V)) {
2716
1744
  V = null;
@@ -2723,23 +1751,12 @@ exports.install = (globalObject, globalNames) => {
2723
1751
  }
2724
1752
 
2725
1753
  get ongotpointercapture() {
2726
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2727
- if ($impl === null) {
2728
- throw new globalObject.TypeError(
2729
- "'get ongotpointercapture' called on an object that is not a valid instance of SVGElement."
2730
- );
2731
- }
2732
-
1754
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get ongotpointercapture");
2733
1755
  return utils.tryWrapperForImpl($impl["ongotpointercapture"]);
2734
1756
  }
2735
1757
 
2736
1758
  set ongotpointercapture(V) {
2737
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2738
- if ($impl === null) {
2739
- throw new globalObject.TypeError(
2740
- "'set ongotpointercapture' called on an object that is not a valid instance of SVGElement."
2741
- );
2742
- }
1759
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set ongotpointercapture");
2743
1760
 
2744
1761
  if (!utils.isObject(V)) {
2745
1762
  V = null;
@@ -2752,23 +1769,12 @@ exports.install = (globalObject, globalNames) => {
2752
1769
  }
2753
1770
 
2754
1771
  get onlostpointercapture() {
2755
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2756
- if ($impl === null) {
2757
- throw new globalObject.TypeError(
2758
- "'get onlostpointercapture' called on an object that is not a valid instance of SVGElement."
2759
- );
2760
- }
2761
-
1772
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get onlostpointercapture");
2762
1773
  return utils.tryWrapperForImpl($impl["onlostpointercapture"]);
2763
1774
  }
2764
1775
 
2765
1776
  set onlostpointercapture(V) {
2766
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2767
- if ($impl === null) {
2768
- throw new globalObject.TypeError(
2769
- "'set onlostpointercapture' called on an object that is not a valid instance of SVGElement."
2770
- );
2771
- }
1777
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set onlostpointercapture");
2772
1778
 
2773
1779
  if (!utils.isObject(V)) {
2774
1780
  V = null;
@@ -2781,33 +1787,21 @@ exports.install = (globalObject, globalNames) => {
2781
1787
  }
2782
1788
 
2783
1789
  get dataset() {
2784
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2785
- if ($impl === null) {
2786
- throw new globalObject.TypeError(
2787
- "'get dataset' called on an object that is not a valid instance of SVGElement."
2788
- );
2789
- }
2790
-
1790
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get dataset");
2791
1791
  return utils.getSameObject(this, "dataset", () => {
2792
1792
  return utils.tryWrapperForImpl($impl["dataset"]);
2793
1793
  });
2794
1794
  }
2795
1795
 
2796
1796
  get nonce() {
2797
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2798
- if ($impl === null) {
2799
- throw new globalObject.TypeError("'get nonce' called on an object that is not a valid instance of SVGElement.");
2800
- }
1797
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get nonce");
2801
1798
 
2802
1799
  const value = $impl._reflectGetTheContentAttribute("nonce");
2803
1800
  return value === null ? "" : value;
2804
1801
  }
2805
1802
 
2806
1803
  set nonce(V) {
2807
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2808
- if ($impl === null) {
2809
- throw new globalObject.TypeError("'set nonce' called on an object that is not a valid instance of SVGElement.");
2810
- }
1804
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set nonce");
2811
1805
 
2812
1806
  V = conversions["DOMString"](V, {
2813
1807
  context: "Failed to set the 'nonce' property on 'SVGElement': The provided value",
@@ -2818,12 +1812,7 @@ exports.install = (globalObject, globalNames) => {
2818
1812
  }
2819
1813
 
2820
1814
  get tabIndex() {
2821
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2822
- if ($impl === null) {
2823
- throw new globalObject.TypeError(
2824
- "'get tabIndex' called on an object that is not a valid instance of SVGElement."
2825
- );
2826
- }
1815
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "get tabIndex");
2827
1816
 
2828
1817
  ceReactionsPreSteps_jsdom_living_helpers_custom_elements(globalObject);
2829
1818
  try {
@@ -2834,12 +1823,7 @@ exports.install = (globalObject, globalNames) => {
2834
1823
  }
2835
1824
 
2836
1825
  set tabIndex(V) {
2837
- const $impl = utils.implForWrapperWithInterface(this ?? globalObject, $interfaceDescriptor);
2838
- if ($impl === null) {
2839
- throw new globalObject.TypeError(
2840
- "'set tabIndex' called on an object that is not a valid instance of SVGElement."
2841
- );
2842
- }
1826
+ const $impl = $requireImpl(this ?? globalObject, globalObject, "set tabIndex");
2843
1827
 
2844
1828
  V = conversions["long"](V, {
2845
1829
  context: "Failed to set the 'tabIndex' property on 'SVGElement': The provided value",