<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[203858] trunk</title>
</head>
<body>
<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; }
#msg dl a { font-weight: bold}
#msg dl a:link { color:#fc3; }
#msg dl a:active { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/203858">203858</a></dd>
<dt>Author</dt> <dd>commit-queue@webkit.org</dd>
<dt>Date</dt> <dd>2016-07-28 23:45:21 -0700 (Thu, 28 Jul 2016)</dd>
</dl>
<h3>Log Message</h3>
<pre>Binding generator should expose the visible interface name in error messages
https://bugs.webkit.org/show_bug.cgi?id=160192
Source/WebCore:
Patch by Youenn Fablet <youenn@apple.com> on 2016-07-28
Reviewed by Darin Adler.
Covered by updated layout and binding tests.
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateImplementation): Using visibleInterfaceName instead of interfaceName.
(GenerateFunctionCastedThis): Ditto.
(GenerateParametersCheck): Ditto.
(GenerateConstructorDefinition): Ditto.
* bindings/scripts/test/JS/JSTestObj.cpp: Rebased.
* bindings/scripts/test/TestObj.idl: Adding ConstructorCallWith to exercice change in GenerateConstructorDefinition.
LayoutTests:
Patch by Youenn Fablet <youennf@gmail.com> on 2016-07-28
Reviewed by Darin Adler.
* editing/selection/extend-expected.txt:
* fast/dom/Window/getComputedStyle-missing-parameter-expected.txt:
* fast/dom/Window/getComputedStyle-missing-parameter.html:
* fetch/fetch-error-messages-expected.txt:
* fetch/fetch-error-messages.html: Adding test for Request.
* js/dom/toString-and-valueOf-override-expected.txt:
* js/getOwnPropertyDescriptor-unforgeable-attributes-expected.txt:
* js/getOwnPropertyDescriptor-window-attributes-expected.txt:
* media/encrypted-media/encrypted-media-v2-syntax-expected.txt:
* media/encrypted-media/encrypted-media-v2-syntax.html:
* webaudio/createMediaStreamSource-null-expected.txt:
* webaudio/createMediaStreamSource-null.html:
* webaudio/decode-audio-data-basic-expected.txt:
* webaudio/decode-audio-data-basic.html:
* webaudio/mediaelementaudiosourcenode-expected.txt:
* webaudio/mediaelementaudiosourcenode.html:</pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestseditingselectionextendexpectedtxt">trunk/LayoutTests/editing/selection/extend-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastdomWindowgetComputedStylemissingparameterexpectedtxt">trunk/LayoutTests/fast/dom/Window/getComputedStyle-missing-parameter-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfastdomWindowgetComputedStylemissingparameterhtml">trunk/LayoutTests/fast/dom/Window/getComputedStyle-missing-parameter.html</a></li>
<li><a href="#trunkLayoutTestsfetchfetcherrormessagesexpectedtxt">trunk/LayoutTests/fetch/fetch-error-messages-expected.txt</a></li>
<li><a href="#trunkLayoutTestsfetchfetcherrormessageshtml">trunk/LayoutTests/fetch/fetch-error-messages.html</a></li>
<li><a href="#trunkLayoutTestsjsdomtoStringandvalueOfoverrideexpectedtxt">trunk/LayoutTests/js/dom/toString-and-valueOf-override-expected.txt</a></li>
<li><a href="#trunkLayoutTestsjsgetOwnPropertyDescriptorunforgeableattributesexpectedtxt">trunk/LayoutTests/js/getOwnPropertyDescriptor-unforgeable-attributes-expected.txt</a></li>
<li><a href="#trunkLayoutTestsjsgetOwnPropertyDescriptorwindowattributesexpectedtxt">trunk/LayoutTests/js/getOwnPropertyDescriptor-window-attributes-expected.txt</a></li>
<li><a href="#trunkLayoutTestsmediaencryptedmediaencryptedmediav2syntaxexpectedtxt">trunk/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax-expected.txt</a></li>
<li><a href="#trunkLayoutTestsmediaencryptedmediaencryptedmediav2syntaxhtml">trunk/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html</a></li>
<li><a href="#trunkLayoutTestswebaudiocreateMediaStreamSourcenullexpectedtxt">trunk/LayoutTests/webaudio/createMediaStreamSource-null-expected.txt</a></li>
<li><a href="#trunkLayoutTestswebaudiocreateMediaStreamSourcenullhtml">trunk/LayoutTests/webaudio/createMediaStreamSource-null.html</a></li>
<li><a href="#trunkLayoutTestswebaudiodecodeaudiodatabasicexpectedtxt">trunk/LayoutTests/webaudio/decode-audio-data-basic-expected.txt</a></li>
<li><a href="#trunkLayoutTestswebaudiodecodeaudiodatabasichtml">trunk/LayoutTests/webaudio/decode-audio-data-basic.html</a></li>
<li><a href="#trunkLayoutTestswebaudiomediaelementaudiosourcenodeexpectedtxt">trunk/LayoutTests/webaudio/mediaelementaudiosourcenode-expected.txt</a></li>
<li><a href="#trunkLayoutTestswebaudiomediaelementaudiosourcenodehtml">trunk/LayoutTests/webaudio/mediaelementaudiosourcenode.html</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm">trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestObjcpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestTestObjidl">trunk/Source/WebCore/bindings/scripts/test/TestObj.idl</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (203857 => 203858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-07-29 05:22:14 UTC (rev 203857)
+++ trunk/LayoutTests/ChangeLog        2016-07-29 06:45:21 UTC (rev 203858)
</span><span class="lines">@@ -1,3 +1,27 @@
</span><ins>+2016-07-28 Youenn Fablet <youennf@gmail.com>
+
+ Binding generator should expose the visible interface name in error messages
+ https://bugs.webkit.org/show_bug.cgi?id=160192
+
+ Reviewed by Darin Adler.
+
+ * editing/selection/extend-expected.txt:
+ * fast/dom/Window/getComputedStyle-missing-parameter-expected.txt:
+ * fast/dom/Window/getComputedStyle-missing-parameter.html:
+ * fetch/fetch-error-messages-expected.txt:
+ * fetch/fetch-error-messages.html: Adding test for Request.
+ * js/dom/toString-and-valueOf-override-expected.txt:
+ * js/getOwnPropertyDescriptor-unforgeable-attributes-expected.txt:
+ * js/getOwnPropertyDescriptor-window-attributes-expected.txt:
+ * media/encrypted-media/encrypted-media-v2-syntax-expected.txt:
+ * media/encrypted-media/encrypted-media-v2-syntax.html:
+ * webaudio/createMediaStreamSource-null-expected.txt:
+ * webaudio/createMediaStreamSource-null.html:
+ * webaudio/decode-audio-data-basic-expected.txt:
+ * webaudio/decode-audio-data-basic.html:
+ * webaudio/mediaelementaudiosourcenode-expected.txt:
+ * webaudio/mediaelementaudiosourcenode.html:
+
</ins><span class="cx"> 2016-07-28 Chris Dumez <cdumez@apple.com>
</span><span class="cx">
</span><span class="cx"> Add support for Element.getAttributeNames()
</span></span></pre></div>
<a id="trunkLayoutTestseditingselectionextendexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/editing/selection/extend-expected.txt (203857 => 203858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/editing/selection/extend-expected.txt        2016-07-29 05:22:14 UTC (rev 203857)
+++ trunk/LayoutTests/editing/selection/extend-expected.txt        2016-07-29 06:45:21 UTC (rev 203858)
</span><span class="lines">@@ -5,4 +5,4 @@
</span><span class="cx"> Success: window.getSelection() is b.
</span><span class="cx"> Success: window.getSelection() is arbaz.
</span><span class="cx"> Success: s.extend() raised TypeError: Not enough arguments.
</span><del>-Success: s.extend(null, 0) raised TypeError: Argument 1 ('node') to DOMSelection.extend must be an instance of Node.
</del><ins>+Success: s.extend(null, 0) raised TypeError: Argument 1 ('node') to Selection.extend must be an instance of Node.
</ins></span></pre></div>
<a id="trunkLayoutTestsfastdomWindowgetComputedStylemissingparameterexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/Window/getComputedStyle-missing-parameter-expected.txt (203857 => 203858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/Window/getComputedStyle-missing-parameter-expected.txt        2016-07-29 05:22:14 UTC (rev 203857)
+++ trunk/LayoutTests/fast/dom/Window/getComputedStyle-missing-parameter-expected.txt        2016-07-29 06:45:21 UTC (rev 203858)
</span><span class="lines">@@ -4,7 +4,7 @@
</span><span class="cx">
</span><span class="cx">
</span><span class="cx"> PASS window.getComputedStyle() threw exception TypeError: Not enough arguments.
</span><del>-PASS window.getComputedStyle(null) threw exception TypeError: Argument 1 ('element') to DOMWindow.getComputedStyle must be an instance of Element.
</del><ins>+PASS window.getComputedStyle(null) threw exception TypeError: Argument 1 ('element') to Window.getComputedStyle must be an instance of Element.
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx">
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsfastdomWindowgetComputedStylemissingparameterhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fast/dom/Window/getComputedStyle-missing-parameter.html (203857 => 203858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fast/dom/Window/getComputedStyle-missing-parameter.html        2016-07-29 05:22:14 UTC (rev 203857)
+++ trunk/LayoutTests/fast/dom/Window/getComputedStyle-missing-parameter.html        2016-07-29 06:45:21 UTC (rev 203858)
</span><span class="lines">@@ -6,7 +6,7 @@
</span><span class="cx"> description("Test that the first parameter to Window.getComputedStyle() is mandatory and not nullable.");
</span><span class="cx">
</span><span class="cx"> shouldThrow("window.getComputedStyle()", "'TypeError: Not enough arguments'");
</span><del>-shouldThrow("window.getComputedStyle(null)", "'TypeError: Argument 1 (\\'element\\') to DOMWindow.getComputedStyle must be an instance of Element'");
</del><ins>+shouldThrow("window.getComputedStyle(null)", "'TypeError: Argument 1 (\\'element\\') to Window.getComputedStyle must be an instance of Element'");
</ins><span class="cx"> </script>
</span><span class="cx"> <script src="../../../resources/js-test-post.js"></script>
</span><span class="cx"> </body>
</span></span></pre></div>
<a id="trunkLayoutTestsfetchfetcherrormessagesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fetch/fetch-error-messages-expected.txt (203857 => 203858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fetch/fetch-error-messages-expected.txt        2016-07-29 05:22:14 UTC (rev 203857)
+++ trunk/LayoutTests/fetch/fetch-error-messages-expected.txt        2016-07-29 06:45:21 UTC (rev 203858)
</span><span class="lines">@@ -1,4 +1,6 @@
</span><span class="cx"> CONSOLE MESSAGE: line 11: TypeError: The Response.body getter can only be used on instances of Response
</span><ins>+CONSOLE MESSAGE: line 11: TypeError: The Request.method getter can only be used on instances of Request
+CONSOLE MESSAGE: line 11: TypeError: Can only call Request.clone on instances of Request
</ins><span class="cx">
</span><span class="cx"> PASS Exercising TypeError messages in Fetch Response
</span><span class="cx">
</span></span></pre></div>
<a id="trunkLayoutTestsfetchfetcherrormessageshtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/fetch/fetch-error-messages.html (203857 => 203858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/fetch/fetch-error-messages.html        2016-07-29 05:22:14 UTC (rev 203857)
+++ trunk/LayoutTests/fetch/fetch-error-messages.html        2016-07-29 06:45:21 UTC (rev 203858)
</span><span class="lines">@@ -25,6 +25,8 @@
</span><span class="cx"> var response = new Response("");
</span><span class="cx">
</span><span class="cx"> printGetterError(response, "body", request);
</span><ins>+ printGetterError(request, "method", response);
+ printMethodError(request.clone, response);
</ins><span class="cx">
</span><span class="cx"> }, "Exercising TypeError messages in Fetch Response");
</span><span class="cx"> </script>
</span></span></pre></div>
<a id="trunkLayoutTestsjsdomtoStringandvalueOfoverrideexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/js/dom/toString-and-valueOf-override-expected.txt (203857 => 203858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/js/dom/toString-and-valueOf-override-expected.txt        2016-07-29 05:22:14 UTC (rev 203857)
+++ trunk/LayoutTests/js/dom/toString-and-valueOf-override-expected.txt        2016-07-29 06:45:21 UTC (rev 203858)
</span><span class="lines">@@ -392,7 +392,7 @@
</span><span class="cx"> String(Selection) :
</span><span class="cx"> String([Selection]) :
</span><span class="cx"> Selection.toString : function toString() { [native code] }
</span><del>-TypeError: Can only call DOMSelection.toString on instances of DOMSelection
</del><ins>+TypeError: Can only call Selection.toString on instances of Selection
</ins><span class="cx"> Selection.toString() :
</span><span class="cx"> [Selection].toString() :
</span><span class="cx"> Selection.valueOf() :
</span></span></pre></div>
<a id="trunkLayoutTestsjsgetOwnPropertyDescriptorunforgeableattributesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/js/getOwnPropertyDescriptor-unforgeable-attributes-expected.txt (203857 => 203858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/js/getOwnPropertyDescriptor-unforgeable-attributes-expected.txt        2016-07-29 05:22:14 UTC (rev 203857)
+++ trunk/LayoutTests/js/getOwnPropertyDescriptor-unforgeable-attributes-expected.txt        2016-07-29 06:45:21 UTC (rev 203858)
</span><span class="lines">@@ -95,7 +95,7 @@
</span><span class="cx"> PASS descriptor.set is an instance of Function
</span><span class="cx"> PASS descriptor.enumerable is true
</span><span class="cx"> PASS descriptor.configurable is false
</span><del>-PASS descriptor.get.call(invalidObject) threw exception TypeError: The DOMWindow.location getter can only be used on instances of DOMWindow.
</del><ins>+PASS descriptor.get.call(invalidObject) threw exception TypeError: The Window.location getter can only be used on instances of Window.
</ins><span class="cx"> PASS descriptor.get.call(window) === window.location is true
</span><span class="cx">
</span><span class="cx"> * Window.window
</span><span class="lines">@@ -103,7 +103,7 @@
</span><span class="cx"> PASS descriptor.set is undefined.
</span><span class="cx"> PASS descriptor.enumerable is true
</span><span class="cx"> PASS descriptor.configurable is false
</span><del>-PASS descriptor.get.call(invalidObject) threw exception TypeError: The DOMWindow.window getter can only be used on instances of DOMWindow.
</del><ins>+PASS descriptor.get.call(invalidObject) threw exception TypeError: The Window.window getter can only be used on instances of Window.
</ins><span class="cx"> PASS descriptor.get.call(window) === window.window is true
</span><span class="cx">
</span><span class="cx"> * Window.top
</span><span class="lines">@@ -111,7 +111,7 @@
</span><span class="cx"> PASS descriptor.set is undefined.
</span><span class="cx"> PASS descriptor.enumerable is true
</span><span class="cx"> PASS descriptor.configurable is false
</span><del>-PASS descriptor.get.call(invalidObject) threw exception TypeError: The DOMWindow.top getter can only be used on instances of DOMWindow.
</del><ins>+PASS descriptor.get.call(invalidObject) threw exception TypeError: The Window.top getter can only be used on instances of Window.
</ins><span class="cx"> PASS descriptor.get.call(window) === window.top is true
</span><span class="cx">
</span><span class="cx"> * Window.document
</span><span class="lines">@@ -119,7 +119,7 @@
</span><span class="cx"> PASS descriptor.set is undefined.
</span><span class="cx"> PASS descriptor.enumerable is true
</span><span class="cx"> PASS descriptor.configurable is false
</span><del>-PASS descriptor.get.call(invalidObject) threw exception TypeError: The DOMWindow.document getter can only be used on instances of DOMWindow.
</del><ins>+PASS descriptor.get.call(invalidObject) threw exception TypeError: The Window.document getter can only be used on instances of Window.
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx">
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestsjsgetOwnPropertyDescriptorwindowattributesexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/js/getOwnPropertyDescriptor-window-attributes-expected.txt (203857 => 203858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/js/getOwnPropertyDescriptor-window-attributes-expected.txt        2016-07-29 05:22:14 UTC (rev 203857)
+++ trunk/LayoutTests/js/getOwnPropertyDescriptor-window-attributes-expected.txt        2016-07-29 06:45:21 UTC (rev 203858)
</span><span class="lines">@@ -8,7 +8,7 @@
</span><span class="cx"> PASS descriptor.set is an instance of Function
</span><span class="cx"> PASS descriptor.enumerable is true
</span><span class="cx"> PASS descriptor.configurable is true
</span><del>-PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The DOMWindow.screen getter can only be used on instances of DOMWindow.
</del><ins>+PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The Window.screen getter can only be used on instances of Window.
</ins><span class="cx"> PASS descriptor.get.call(window) === window.screen is true
</span><span class="cx"> PASS descriptor.get.call() === window.screen is true
</span><span class="cx">
</span><span class="lines">@@ -17,7 +17,7 @@
</span><span class="cx"> PASS descriptor.set is undefined.
</span><span class="cx"> PASS descriptor.enumerable is true
</span><span class="cx"> PASS descriptor.configurable is true
</span><del>-PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The DOMWindow.navigator getter can only be used on instances of DOMWindow.
</del><ins>+PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The Window.navigator getter can only be used on instances of Window.
</ins><span class="cx"> PASS descriptor.get.call(window) === window.navigator is true
</span><span class="cx"> PASS descriptor.get.call() === window.navigator is true
</span><span class="cx">
</span><span class="lines">@@ -26,7 +26,7 @@
</span><span class="cx"> PASS descriptor.set is an instance of Function
</span><span class="cx"> PASS descriptor.enumerable is true
</span><span class="cx"> PASS descriptor.configurable is true
</span><del>-PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The DOMWindow.self getter can only be used on instances of DOMWindow.
</del><ins>+PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The Window.self getter can only be used on instances of Window.
</ins><span class="cx"> PASS descriptor.get.call(window) === window.self is true
</span><span class="cx"> PASS descriptor.get.call() === window.self is true
</span><span class="cx">
</span><span class="lines">@@ -35,7 +35,7 @@
</span><span class="cx"> PASS descriptor.set is undefined.
</span><span class="cx"> PASS descriptor.enumerable is true
</span><span class="cx"> PASS descriptor.configurable is true
</span><del>-PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The DOMWindow.frameElement getter can only be used on instances of DOMWindow.
</del><ins>+PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The Window.frameElement getter can only be used on instances of Window.
</ins><span class="cx"> PASS descriptor.get.call(window) === window.frameElement is true
</span><span class="cx"> PASS descriptor.get.call() === window.frameElement is true
</span><span class="cx">
</span><span class="lines">@@ -44,7 +44,7 @@
</span><span class="cx"> PASS descriptor.set is an instance of Function
</span><span class="cx"> PASS descriptor.enumerable is true
</span><span class="cx"> PASS descriptor.configurable is true
</span><del>-PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The DOMWindow.name getter can only be used on instances of DOMWindow.
</del><ins>+PASS descriptor.get.call(nonWindowObject) threw exception TypeError: The Window.name getter can only be used on instances of Window.
</ins><span class="cx"> PASS descriptor.get.call(window) === window.name is true
</span><span class="cx"> PASS descriptor.get.call() === window.name is true
</span><span class="cx">
</span></span></pre></div>
<a id="trunkLayoutTestsmediaencryptedmediaencryptedmediav2syntaxexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax-expected.txt (203857 => 203858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax-expected.txt        2016-07-29 05:22:14 UTC (rev 203857)
+++ trunk/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax-expected.txt        2016-07-29 06:45:21 UTC (rev 203858)
</span><span class="lines">@@ -22,6 +22,6 @@
</span><span class="cx"> EXPECTED (mediaKeySession.onwebkitkeyadded == 'null') OK
</span><span class="cx"> EXPECTED (mediaKeySession.onwebkitkeyerror == 'null') OK
</span><span class="cx"> EXPECTED (mediaKeySession.onwebkitkeymessage == 'null') OK
</span><del>-TEST(mediaKeySession.update(null)) THROWS('TypeError: Argument 1 (\'key\') to MediaKeySession.update must be an instance of Uint8Array') OK
</del><ins>+TEST(mediaKeySession.update(null)) THROWS('TypeError: Argument 1 (\'key\') to WebKitMediaKeySession.update must be an instance of Uint8Array') OK
</ins><span class="cx"> END OF TEST
</span><span class="cx">
</span></span></pre></div>
<a id="trunkLayoutTestsmediaencryptedmediaencryptedmediav2syntaxhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html (203857 => 203858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html        2016-07-29 05:22:14 UTC (rev 203857)
+++ trunk/LayoutTests/media/encrypted-media/encrypted-media-v2-syntax.html        2016-07-29 06:45:21 UTC (rev 203858)
</span><span class="lines">@@ -47,7 +47,7 @@
</span><span class="cx"> testExpected('mediaKeySession.onwebkitkeyadded', null);
</span><span class="cx"> testExpected('mediaKeySession.onwebkitkeyerror', null);
</span><span class="cx"> testExpected('mediaKeySession.onwebkitkeymessage', null);
</span><del>- testException('mediaKeySession.update(null)', "'TypeError: Argument 1 (\\'key\\') to MediaKeySession.update must be an instance of Uint8Array'");
</del><ins>+ testException('mediaKeySession.update(null)', "'TypeError: Argument 1 (\\'key\\') to WebKitMediaKeySession.update must be an instance of Uint8Array'");
</ins><span class="cx"> endTest();
</span><span class="cx"> }
</span><span class="cx"> </script>
</span></span></pre></div>
<a id="trunkLayoutTestswebaudiocreateMediaStreamSourcenullexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/webaudio/createMediaStreamSource-null-expected.txt (203857 => 203858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/webaudio/createMediaStreamSource-null-expected.txt        2016-07-29 05:22:14 UTC (rev 203857)
+++ trunk/LayoutTests/webaudio/createMediaStreamSource-null-expected.txt        2016-07-29 06:45:21 UTC (rev 203858)
</span><span class="lines">@@ -3,7 +3,7 @@
</span><span class="cx"> On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
</span><span class="cx">
</span><span class="cx">
</span><del>-PASS context.createMediaStreamSource(null) threw exception TypeError: Argument 1 ('mediaStream') to AudioContext.createMediaStreamSource must be an instance of MediaStream.
</del><ins>+PASS context.createMediaStreamSource(null) threw exception TypeError: Argument 1 ('mediaStream') to webkitAudioContext.createMediaStreamSource must be an instance of MediaStream.
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx">
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestswebaudiocreateMediaStreamSourcenullhtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/webaudio/createMediaStreamSource-null.html (203857 => 203858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/webaudio/createMediaStreamSource-null.html        2016-07-29 05:22:14 UTC (rev 203857)
+++ trunk/LayoutTests/webaudio/createMediaStreamSource-null.html        2016-07-29 06:45:21 UTC (rev 203858)
</span><span class="lines">@@ -9,7 +9,7 @@
</span><span class="cx"> description("Tests that passing null to context.createMediaStreamSource() throws a TypeError.");
</span><span class="cx">
</span><span class="cx"> var context = new webkitAudioContext();
</span><del>-shouldThrow("context.createMediaStreamSource(null)", "'TypeError: Argument 1 (\\'mediaStream\\') to AudioContext.createMediaStreamSource must be an instance of MediaStream'");
</del><ins>+shouldThrow("context.createMediaStreamSource(null)", "'TypeError: Argument 1 (\\'mediaStream\\') to webkitAudioContext.createMediaStreamSource must be an instance of MediaStream'");
</ins><span class="cx">
</span><span class="cx"> </script>
</span><span class="cx"> <script src="../resources/js-test-post.js"></script>
</span></span></pre></div>
<a id="trunkLayoutTestswebaudiodecodeaudiodatabasicexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/webaudio/decode-audio-data-basic-expected.txt (203857 => 203858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/webaudio/decode-audio-data-basic-expected.txt        2016-07-29 05:22:14 UTC (rev 203857)
+++ trunk/LayoutTests/webaudio/decode-audio-data-basic-expected.txt        2016-07-29 06:45:21 UTC (rev 203858)
</span><span class="lines">@@ -3,7 +3,7 @@
</span><span class="cx"> On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
</span><span class="cx">
</span><span class="cx">
</span><del>-PASS context.decodeAudioData(null, function(){}, function(){}); threw exception TypeError: Argument 1 ('audioData') to AudioContext.decodeAudioData must be an instance of ArrayBuffer.
</del><ins>+PASS context.decodeAudioData(null, function(){}, function(){}); threw exception TypeError: Argument 1 ('audioData') to webkitAudioContext.decodeAudioData must be an instance of ArrayBuffer.
</ins><span class="cx"> PASS The resources/media/24bit-44khz.wav test: successCallback has been called correctly.
</span><span class="cx"> PASS The resources/media/invalid-audio-file.txt test: errorCallback has been called correctly.
</span><span class="cx"> PASS successfullyParsed is true
</span></span></pre></div>
<a id="trunkLayoutTestswebaudiodecodeaudiodatabasichtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/webaudio/decode-audio-data-basic.html (203857 => 203858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/webaudio/decode-audio-data-basic.html        2016-07-29 05:22:14 UTC (rev 203857)
+++ trunk/LayoutTests/webaudio/decode-audio-data-basic.html        2016-07-29 06:45:21 UTC (rev 203858)
</span><span class="lines">@@ -18,7 +18,7 @@
</span><span class="cx"> var context = new webkitAudioContext();
</span><span class="cx">
</span><span class="cx"> // decodeAudioData should raise exception when arraybuffer parameter is null.
</span><del>-shouldThrow("context.decodeAudioData(null, function(){}, function(){});", "'TypeError: Argument 1 (\\'audioData\\') to AudioContext.decodeAudioData must be an instance of ArrayBuffer'");
</del><ins>+shouldThrow("context.decodeAudioData(null, function(){}, function(){});", "'TypeError: Argument 1 (\\'audioData\\') to webkitAudioContext.decodeAudioData must be an instance of ArrayBuffer'");
</ins><span class="cx">
</span><span class="cx"> var decodeCaseArray = [{url: "resources/media/24bit-44khz.wav", result: true},
</span><span class="cx"> {url: "resources/media/invalid-audio-file.txt", result: false}];
</span></span></pre></div>
<a id="trunkLayoutTestswebaudiomediaelementaudiosourcenodeexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/webaudio/mediaelementaudiosourcenode-expected.txt (203857 => 203858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/webaudio/mediaelementaudiosourcenode-expected.txt        2016-07-29 05:22:14 UTC (rev 203857)
+++ trunk/LayoutTests/webaudio/mediaelementaudiosourcenode-expected.txt        2016-07-29 06:45:21 UTC (rev 203858)
</span><span class="lines">@@ -9,7 +9,7 @@
</span><span class="cx"> PASS connect() exception thrown for illegal input index.
</span><span class="cx"> PASS audioNode.connect(context.destination) succeeded.
</span><span class="cx"> PASS createMediaElementSource() threw error when called twice on same HTMLMediaElement.
</span><del>-PASS context.createMediaElementSource(null) threw exception TypeError: Argument 1 ('mediaElement') to AudioContext.createMediaElementSource must be an instance of HTMLMediaElement.
</del><ins>+PASS context.createMediaElementSource(null) threw exception TypeError: Argument 1 ('mediaElement') to webkitAudioContext.createMediaElementSource must be an instance of HTMLMediaElement.
</ins><span class="cx"> PASS successfullyParsed is true
</span><span class="cx">
</span><span class="cx"> TEST COMPLETE
</span></span></pre></div>
<a id="trunkLayoutTestswebaudiomediaelementaudiosourcenodehtml"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/webaudio/mediaelementaudiosourcenode.html (203857 => 203858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/webaudio/mediaelementaudiosourcenode.html        2016-07-29 05:22:14 UTC (rev 203857)
+++ trunk/LayoutTests/webaudio/mediaelementaudiosourcenode.html        2016-07-29 06:45:21 UTC (rev 203858)
</span><span class="lines">@@ -79,7 +79,7 @@
</span><span class="cx"> testPassed("createMediaElementSource() threw error when called twice on same HTMLMediaElement.");
</span><span class="cx"> }
</span><span class="cx">
</span><del>- shouldThrow("context.createMediaElementSource(null)", "'TypeError: Argument 1 (\\'mediaElement\\') to AudioContext.createMediaElementSource must be an instance of HTMLMediaElement'");
</del><ins>+ shouldThrow("context.createMediaElementSource(null)", "'TypeError: Argument 1 (\\'mediaElement\\') to webkitAudioContext.createMediaElementSource must be an instance of HTMLMediaElement'");
</ins><span class="cx">
</span><span class="cx"> finishJSTest();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (203857 => 203858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-07-29 05:22:14 UTC (rev 203857)
+++ trunk/Source/WebCore/ChangeLog        2016-07-29 06:45:21 UTC (rev 203858)
</span><span class="lines">@@ -1,3 +1,20 @@
</span><ins>+2016-07-28 Youenn Fablet <youenn@apple.com>
+
+ Binding generator should expose the visible interface name in error messages
+ https://bugs.webkit.org/show_bug.cgi?id=160192
+
+ Reviewed by Darin Adler.
+
+ Covered by updated layout and binding tests.
+
+ * bindings/scripts/CodeGeneratorJS.pm:
+ (GenerateImplementation): Using visibleInterfaceName instead of interfaceName.
+ (GenerateFunctionCastedThis): Ditto.
+ (GenerateParametersCheck): Ditto.
+ (GenerateConstructorDefinition): Ditto.
+ * bindings/scripts/test/JS/JSTestObj.cpp: Rebased.
+ * bindings/scripts/test/TestObj.idl: Adding ConstructorCallWith to exercice change in GenerateConstructorDefinition.
+
</ins><span class="cx"> 2016-07-28 Carlos Garcia Campos <cgarcia@igalia.com>
</span><span class="cx">
</span><span class="cx"> Split calculateCacheSizes in two methods
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptsCodeGeneratorJSpm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (203857 => 203858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2016-07-29 05:22:14 UTC (rev 203857)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm        2016-07-29 06:45:21 UTC (rev 203858)
</span><span class="lines">@@ -2569,7 +2569,7 @@
</span><span class="cx"> if ($attribute->signature->extendedAttributes->{"LenientThis"}) {
</span><span class="cx"> push(@implContent, " return JSValue::encode(jsUndefined());\n");
</span><span class="cx"> } else {
</span><del>- push(@implContent, " return throwGetterTypeError(*state, \"$interfaceName\", \"$name\");\n");
</del><ins>+ push(@implContent, " return throwGetterTypeError(*state, \"$visibleInterfaceName\", \"$name\");\n");
</ins><span class="cx"> }
</span><span class="cx"> push(@implContent, " }\n");
</span><span class="cx"> }
</span><span class="lines">@@ -2860,7 +2860,7 @@
</span><span class="cx"> if ($attribute->signature->extendedAttributes->{"LenientThis"}) {
</span><span class="cx"> push(@implContent, " return false;\n");
</span><span class="cx"> } else {
</span><del>- push(@implContent, " return throwSetterTypeError(*state, \"$interfaceName\", \"$name\");\n");
</del><ins>+ push(@implContent, " return throwSetterTypeError(*state, \"$visibleInterfaceName\", \"$name\");\n");
</ins><span class="cx"> }
</span><span class="cx"> push(@implContent, " }\n");
</span><span class="cx"> }
</span><span class="lines">@@ -2953,7 +2953,7 @@
</span><span class="cx"> push(@implContent, " return false;\n");
</span><span class="cx"> }
</span><span class="cx"> push(@implContent, " if (UNLIKELY(!nativeValue)) {\n");
</span><del>- push(@implContent, " throwAttributeTypeError(*state, \"$interfaceName\", \"$name\", \"$type\");\n");
</del><ins>+ push(@implContent, " throwAttributeTypeError(*state, \"$visibleInterfaceName\", \"$name\", \"$type\");\n");
</ins><span class="cx"> push(@implContent, " return false;\n");
</span><span class="cx"> push(@implContent, " }\n");
</span><span class="cx"> push(@implContent, " }\n");
</span><span class="lines">@@ -2972,7 +2972,7 @@
</span><span class="cx">
</span><span class="cx"> if ($shouldPassByReference) {
</span><span class="cx"> push(@implContent, " if (UNLIKELY(!nativeValue)) {\n");
</span><del>- push(@implContent, " throwAttributeTypeError(*state, \"$interfaceName\", \"$name\", \"$type\");\n");
</del><ins>+ push(@implContent, " throwAttributeTypeError(*state, \"$visibleInterfaceName\", \"$name\", \"$type\");\n");
</ins><span class="cx"> push(@implContent, " return false;\n");
</span><span class="cx"> push(@implContent, " }\n");
</span><span class="cx"> }
</span><span class="lines">@@ -3468,9 +3468,11 @@
</span><span class="cx"> } else {
</span><span class="cx"> push(@implContent, " auto castedThis = $castingHelper(thisValue);\n");
</span><span class="cx"> }
</span><ins>+
+ my $visibleInterfaceName = $codeGenerator->GetVisibleInterfaceName($interface);
</ins><span class="cx"> my $domFunctionName = $function->signature->name;
</span><span class="cx"> push(@implContent, " if (UNLIKELY(!castedThis))\n");
</span><del>- push(@implContent, " return throwThisTypeError(*state, \"$interfaceName\", \"$domFunctionName\");\n");
</del><ins>+ push(@implContent, " return throwThisTypeError(*state, \"$visibleInterfaceName\", \"$domFunctionName\");\n");
</ins><span class="cx"> }
</span><span class="cx">
</span><span class="cx"> push(@implContent, " ASSERT_GC_OBJECT_INHERITS(castedThis, ${className}::info());\n") unless $interface->name eq "EventTarget";
</span><span class="lines">@@ -3593,6 +3595,7 @@
</span><span class="cx"> my ($outputArray, $function, $interface, $functionImplementationName, $svgPropertyType, $svgPropertyOrListPropertyType, $svgListPropertyType) = @_;
</span><span class="cx">
</span><span class="cx"> my $interfaceName = $interface->name;
</span><ins>+ my $visibleInterfaceName = $codeGenerator->GetVisibleInterfaceName($interface);
</ins><span class="cx"> my @arguments;
</span><span class="cx"> my $functionName;
</span><span class="cx"> my $implementedBy = $function->signature->extendedAttributes->{"ImplementedBy"};
</span><span class="lines">@@ -3661,7 +3664,7 @@
</span><span class="cx"> } else {
</span><span class="cx"> push(@$outputArray, " if (!state->uncheckedArgument($argumentIndex).isObject())\n");
</span><span class="cx"> }
</span><del>- push(@$outputArray, " return throwArgumentMustBeFunctionError(*state, $argumentIndex, \"$name\", \"$interfaceName\", $quotedFunctionName);\n");
</del><ins>+ push(@$outputArray, " return throwArgumentMustBeFunctionError(*state, $argumentIndex, \"$name\", \"$visibleInterfaceName\", $quotedFunctionName);\n");
</ins><span class="cx"> if ($function->isStatic) {
</span><span class="cx"> AddToImplIncludes("CallbackFunction.h");
</span><span class="cx"> push(@$outputArray, " $name = createFunctionOnlyCallback<${callbackClassName}>(state, jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject()), state->uncheckedArgument($argumentIndex));\n");
</span><span class="lines">@@ -3675,7 +3678,7 @@
</span><span class="cx"> } else {
</span><span class="cx"> push(@$outputArray, " if (UNLIKELY(!state->argument($argumentIndex).isObject()))\n");
</span><span class="cx"> }
</span><del>- push(@$outputArray, " return throwArgumentMustBeFunctionError(*state, $argumentIndex, \"$name\", \"$interfaceName\", $quotedFunctionName);\n");
</del><ins>+ push(@$outputArray, " return throwArgumentMustBeFunctionError(*state, $argumentIndex, \"$name\", \"$visibleInterfaceName\", $quotedFunctionName);\n");
</ins><span class="cx"> if ($function->isStatic) {
</span><span class="cx"> AddToImplIncludes("CallbackFunction.h");
</span><span class="cx"> push(@$outputArray, " auto $name = createFunctionOnlyCallback<${callbackClassName}>(state, jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject()), state->uncheckedArgument($argumentIndex));\n");
</span><span class="lines">@@ -3693,7 +3696,7 @@
</span><span class="cx"> push(@$outputArray, " for (unsigned i = $argumentIndex, count = state->argumentCount(); i < count; ++i) {\n");
</span><span class="cx"> push(@$outputArray, " auto* item = JS${type}::toWrapped(state->uncheckedArgument(i));\n");
</span><span class="cx"> push(@$outputArray, " if (!item)\n");
</span><del>- push(@$outputArray, " return throwArgumentTypeError(*state, i, \"$name\", \"$interfaceName\", $quotedFunctionName, \"$type\");\n");
</del><ins>+ push(@$outputArray, " return throwArgumentTypeError(*state, i, \"$name\", \"$visibleInterfaceName\", $quotedFunctionName, \"$type\");\n");
</ins><span class="cx"> push(@$outputArray, " $name.uncheckedAppend(item);\n");
</span><span class="cx"> push(@$outputArray, " }\n")
</span><span class="cx"> } else {
</span><span class="lines">@@ -3736,7 +3739,7 @@
</span><span class="cx"> push(@$outputArray, "$indent if (UNLIKELY(state->hadException()))\n");
</span><span class="cx"> push(@$outputArray, "$indent return JSValue::encode(jsUndefined());\n");
</span><span class="cx"> push(@$outputArray, "$indent if (UNLIKELY(!$optionalValue))\n");
</span><del>- push(@$outputArray, "$indent return throwArgumentMustBeEnumError(*state, $argumentIndex, \"$name\", \"$interfaceName\", $quotedFunctionName, expectedEnumerationValues<$className>());\n");
</del><ins>+ push(@$outputArray, "$indent return throwArgumentMustBeEnumError(*state, $argumentIndex, \"$name\", \"$visibleInterfaceName\", $quotedFunctionName, expectedEnumerationValues<$className>());\n");
</ins><span class="cx"> push(@$outputArray, "$indent $name = optionalValue.value();\n") if $optionalValue ne $name;
</span><span class="cx">
</span><span class="cx"> push(@$outputArray, " }\n") if $indent ne "";
</span><span class="lines">@@ -3760,7 +3763,7 @@
</span><span class="cx"> push(@$outputArray, " return JSValue::encode(jsUndefined());\n");
</span><span class="cx"> }
</span><span class="cx"> push(@$outputArray, " if (UNLIKELY(!$name))\n");
</span><del>- push(@$outputArray, " return throwArgumentTypeError(*state, $argumentIndex, \"$name\", \"$interfaceName\", $quotedFunctionName, \"$type\");\n");
</del><ins>+ push(@$outputArray, " return throwArgumentTypeError(*state, $argumentIndex, \"$name\", \"$visibleInterfaceName\", $quotedFunctionName, \"$type\");\n");
</ins><span class="cx"> push(@$outputArray, " }\n");
</span><span class="cx"> } else {
</span><span class="cx"> if ($parameter->isOptional && defined($parameter->default) && !WillConvertUndefinedToDefaultParameterValue($type, $parameter->default)) {
</span><span class="lines">@@ -3805,7 +3808,7 @@
</span><span class="cx">
</span><span class="cx"> if ($shouldPassByReference) {
</span><span class="cx"> push(@$outputArray, " if (UNLIKELY(!$name))\n");
</span><del>- push(@$outputArray, " return throwArgumentTypeError(*state, $argumentIndex, \"$name\", \"$interfaceName\", $quotedFunctionName, \"$type\");\n");
</del><ins>+ push(@$outputArray, " return throwArgumentTypeError(*state, $argumentIndex, \"$name\", \"$visibleInterfaceName\", $quotedFunctionName, \"$type\");\n");
</ins><span class="cx"> $value = $isTearOff ? "$name->propertyReference()" : "*$name";
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -5133,7 +5136,7 @@
</span><span class="cx"> push(@constructorArgList, "*context");
</span><span class="cx"> push(@$outputArray, " ScriptExecutionContext* context = castedThis->scriptExecutionContext();\n");
</span><span class="cx"> push(@$outputArray, " if (UNLIKELY(!context))\n");
</span><del>- push(@$outputArray, " return throwConstructorDocumentUnavailableError(*state, \"${interfaceName}\");\n");
</del><ins>+ push(@$outputArray, " return throwConstructorDocumentUnavailableError(*state, \"${visibleInterfaceName}\");\n");
</ins><span class="cx"> }
</span><span class="cx"> if ($codeGenerator->ExtendedAttributeContains($interface->extendedAttributes->{"ConstructorCallWith"}, "Document")) {
</span><span class="cx"> $implIncludes{"Document.h"} = 1;
</span><span class="lines">@@ -5140,7 +5143,7 @@
</span><span class="cx"> push(@constructorArgList, "document");
</span><span class="cx"> push(@$outputArray, " ScriptExecutionContext* context = castedThis->scriptExecutionContext();\n");
</span><span class="cx"> push(@$outputArray, " if (UNLIKELY(!context))\n");
</span><del>- push(@$outputArray, " return throwConstructorDocumentUnavailableError(*state, \"${interfaceName}\");\n");
</del><ins>+ push(@$outputArray, " return throwConstructorDocumentUnavailableError(*state, \"${visibleInterfaceName}\");\n");
</ins><span class="cx"> push(@$outputArray, " ASSERT(context->isDocument());\n");
</span><span class="cx"> push(@$outputArray, " auto& document = downcast<Document>(*context);\n");
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestObjcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp (203857 => 203858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp        2016-07-29 05:22:14 UTC (rev 203857)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp        2016-07-29 06:45:21 UTC (rev 203858)
</span><span class="lines">@@ -1013,12 +1013,17 @@
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 2))
</span><span class="cx"> return throwVMError(state, createNotEnoughArgumentsError(state));
</span><span class="cx"> if (UNLIKELY(!state->argument(0).isObject()))
</span><del>- return throwArgumentMustBeFunctionError(*state, 0, "testCallback", "TestObj", nullptr);
</del><ins>+ return throwArgumentMustBeFunctionError(*state, 0, "testCallback", "TestObject", nullptr);
</ins><span class="cx"> auto testCallback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</span><span class="cx"> if (UNLIKELY(!state->argument(1).isFunction()))
</span><del>- return throwArgumentMustBeFunctionError(*state, 1, "testCallbackFunction", "TestObj", nullptr);
</del><ins>+ return throwArgumentMustBeFunctionError(*state, 1, "testCallbackFunction", "TestObject", nullptr);
</ins><span class="cx"> auto testCallbackFunction = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
</span><del>- auto object = TestObj::create(*testCallback, *testCallbackFunction);
</del><ins>+ ScriptExecutionContext* context = castedThis->scriptExecutionContext();
+ if (UNLIKELY(!context))
+ return throwConstructorDocumentUnavailableError(*state, "TestObject");
+ ASSERT(context->isDocument());
+ auto& document = downcast<Document>(*context);
+ auto object = TestObj::create(document, *testCallback, *testCallbackFunction);
</ins><span class="cx"> return JSValue::encode(asObject(toJSNewlyCreated(state, castedThis->globalObject(), WTFMove(object))));
</span><span class="cx"> }
</span><span class="cx">
</span><span class="lines">@@ -1385,7 +1390,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "readOnlyLongAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "readOnlyLongAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.readOnlyLongAttr());
</span><span class="lines">@@ -1400,7 +1405,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "readOnlyStringAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "readOnlyStringAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsStringWithCache(state, impl.readOnlyStringAttr());
</span><span class="lines">@@ -1415,7 +1420,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "readOnlyTestObjAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "readOnlyTestObjAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = toJS(state, castedThis->globalObject(), impl.readOnlyTestObjAttr());
</span><span class="lines">@@ -1448,7 +1453,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "TestSubObj");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "TestSubObj");
</ins><span class="cx"> }
</span><span class="cx"> return JSValue::encode(JSTestSubObj::getConstructor(state->vm(), castedThis->globalObject()));
</span><span class="cx"> }
</span><span class="lines">@@ -1461,7 +1466,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "TestSubObjEnabledBySetting");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "TestSubObjEnabledBySetting");
</ins><span class="cx"> }
</span><span class="cx"> if (UNLIKELY(!castedThis->wrapped().frame()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="lines">@@ -1479,7 +1484,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "enumAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "enumAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsStringWithCache(state, impl.enumAttr());
</span><span class="lines">@@ -1494,7 +1499,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "byteAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "byteAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.byteAttr());
</span><span class="lines">@@ -1509,7 +1514,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "octetAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "octetAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.octetAttr());
</span><span class="lines">@@ -1524,7 +1529,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "shortAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "shortAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.shortAttr());
</span><span class="lines">@@ -1539,7 +1544,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "clampedShortAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "clampedShortAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.clampedShortAttr());
</span><span class="lines">@@ -1554,7 +1559,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "enforceRangeShortAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "enforceRangeShortAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.enforceRangeShortAttr());
</span><span class="lines">@@ -1569,7 +1574,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "unsignedShortAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "unsignedShortAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.unsignedShortAttr());
</span><span class="lines">@@ -1584,7 +1589,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "longAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "longAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.longAttr());
</span><span class="lines">@@ -1599,7 +1604,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "longLongAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "longLongAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.longLongAttr());
</span><span class="lines">@@ -1614,7 +1619,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "unsignedLongLongAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "unsignedLongLongAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.unsignedLongLongAttr());
</span><span class="lines">@@ -1629,7 +1634,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "stringAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "stringAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsStringWithCache(state, impl.stringAttr());
</span><span class="lines">@@ -1644,7 +1649,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "testObjAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "testObjAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = toJS(state, castedThis->globalObject(), impl.testObjAttr());
</span><span class="lines">@@ -1659,7 +1664,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "testNullableObjAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "testNullableObjAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = toJS(state, castedThis->globalObject(), impl.testNullableObjAttr());
</span><span class="lines">@@ -1689,7 +1694,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "unforgeableAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "unforgeableAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsStringWithCache(state, impl.unforgeableAttr());
</span><span class="lines">@@ -1704,7 +1709,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "stringAttrTreatingNullAsEmptyString");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "stringAttrTreatingNullAsEmptyString");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsStringWithCache(state, impl.stringAttrTreatingNullAsEmptyString());
</span><span class="lines">@@ -1719,7 +1724,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "XMLObjAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "XMLObjAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = toJS(state, castedThis->globalObject(), impl.xmlObjAttr());
</span><span class="lines">@@ -1734,7 +1739,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "create");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "create");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsBoolean(impl.isCreate());
</span><span class="lines">@@ -1749,7 +1754,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "reflectedStringAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "reflectedStringAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsStringWithCache(state, impl.attributeWithoutSynchronization(WebCore::HTMLNames::reflectedstringattrAttr));
</span><span class="lines">@@ -1764,7 +1769,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "reflectedIntegralAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "reflectedIntegralAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.getIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr));
</span><span class="lines">@@ -1779,7 +1784,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "reflectedUnsignedIntegralAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "reflectedUnsignedIntegralAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(std::max(0, impl.getIntegralAttribute(WebCore::HTMLNames::reflectedunsignedintegralattrAttr)));
</span><span class="lines">@@ -1794,7 +1799,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "reflectedBooleanAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "reflectedBooleanAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsBoolean(impl.hasAttributeWithoutSynchronization(WebCore::HTMLNames::reflectedbooleanattrAttr));
</span><span class="lines">@@ -1809,7 +1814,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "reflectedURLAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "reflectedURLAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsStringWithCache(state, impl.getURLAttribute(WebCore::HTMLNames::reflectedurlattrAttr));
</span><span class="lines">@@ -1824,7 +1829,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "reflectedStringAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "reflectedStringAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsStringWithCache(state, impl.attributeWithoutSynchronization(WebCore::HTMLNames::customContentStringAttrAttr));
</span><span class="lines">@@ -1839,7 +1844,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "reflectedCustomIntegralAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "reflectedCustomIntegralAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.getIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr));
</span><span class="lines">@@ -1854,7 +1859,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "reflectedCustomBooleanAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "reflectedCustomBooleanAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsBoolean(impl.hasAttributeWithoutSynchronization(WebCore::HTMLNames::customContentBooleanAttrAttr));
</span><span class="lines">@@ -1869,7 +1874,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "reflectedCustomURLAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "reflectedCustomURLAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsStringWithCache(state, impl.getURLAttribute(WebCore::HTMLNames::customContentURLAttrAttr));
</span><span class="lines">@@ -1885,7 +1890,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "enabledAtRuntimeAttribute");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "enabledAtRuntimeAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsStringWithCache(state, impl.enabledAtRuntimeAttribute());
</span><span class="lines">@@ -1901,7 +1906,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "typedArrayAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "typedArrayAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = toJS(state, castedThis->globalObject(), impl.typedArrayAttr());
</span><span class="lines">@@ -1916,7 +1921,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "attrWithGetterException");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "attrWithGetterException");
</ins><span class="cx"> }
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="lines">@@ -1933,7 +1938,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "attrWithGetterExceptionWithMessage");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "attrWithGetterExceptionWithMessage");
</ins><span class="cx"> }
</span><span class="cx"> ExceptionCodeWithMessage ec;
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="lines">@@ -1950,7 +1955,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "attrWithSetterException");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "attrWithSetterException");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.attrWithSetterException());
</span><span class="lines">@@ -1965,7 +1970,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "attrWithSetterExceptionWithMessage");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "attrWithSetterExceptionWithMessage");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.attrWithSetterExceptionWithMessage());
</span><span class="lines">@@ -1980,7 +1985,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "stringAttrWithGetterException");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "stringAttrWithGetterException");
</ins><span class="cx"> }
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="lines">@@ -1997,7 +2002,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "stringAttrWithSetterException");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "stringAttrWithSetterException");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsStringWithCache(state, impl.stringAttrWithSetterException());
</span><span class="lines">@@ -2012,7 +2017,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "strictTypeCheckingAttribute");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "strictTypeCheckingAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = toJS(state, castedThis->globalObject(), impl.strictTypeCheckingAttribute());
</span><span class="lines">@@ -2027,7 +2032,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "customAttr");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "customAttr");
</ins><span class="cx"> }
</span><span class="cx"> return JSValue::encode(castedThis->customAttr(*state));
</span><span class="cx"> }
</span><span class="lines">@@ -2040,7 +2045,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "onfoo");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "onfoo");
</ins><span class="cx"> }
</span><span class="cx"> UNUSED_PARAM(state);
</span><span class="cx"> return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().fooEvent));
</span><span class="lines">@@ -2054,7 +2059,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "onwebkitfoo");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "onwebkitfoo");
</ins><span class="cx"> }
</span><span class="cx"> UNUSED_PARAM(state);
</span><span class="cx"> return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().fooEvent));
</span><span class="lines">@@ -2068,7 +2073,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "withScriptStateAttribute");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "withScriptStateAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.withScriptStateAttribute(*state));
</span><span class="lines">@@ -2083,7 +2088,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "withCallWithAndSetterCallWithAttribute");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "withCallWithAndSetterCallWithAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.withCallWithAndSetterCallWithAttribute(*state));
</span><span class="lines">@@ -2098,7 +2103,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "withScriptExecutionContextAttribute");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "withScriptExecutionContextAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto* context = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</span><span class="cx"> if (!context)
</span><span class="lines">@@ -2116,7 +2121,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "withScriptStateAttributeRaises");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "withScriptStateAttributeRaises");
</ins><span class="cx"> }
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="lines">@@ -2133,7 +2138,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "withScriptExecutionContextAttributeRaises");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "withScriptExecutionContextAttributeRaises");
</ins><span class="cx"> }
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> auto* context = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</span><span class="lines">@@ -2153,7 +2158,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateAttribute");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto* context = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</span><span class="cx"> if (!context)
</span><span class="lines">@@ -2171,7 +2176,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateAttributeRaises");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateAttributeRaises");
</ins><span class="cx"> }
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> auto* context = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</span><span class="lines">@@ -2191,7 +2196,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateWithSpacesAttribute");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateWithSpacesAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto* context = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</span><span class="cx"> if (!context)
</span><span class="lines">@@ -2209,7 +2214,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "withScriptArgumentsAndCallStackAttribute");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "withScriptArgumentsAndCallStackAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = toJS(state, castedThis->globalObject(), impl.withScriptArgumentsAndCallStackAttribute());
</span><span class="lines">@@ -2225,7 +2230,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "conditionalAttr1");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "conditionalAttr1");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.conditionalAttr1());
</span><span class="lines">@@ -2242,7 +2247,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "conditionalAttr2");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "conditionalAttr2");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.conditionalAttr2());
</span><span class="lines">@@ -2259,7 +2264,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "conditionalAttr3");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "conditionalAttr3");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.conditionalAttr3());
</span><span class="lines">@@ -2276,7 +2281,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "conditionalAttr4");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "conditionalAttr4");
</ins><span class="cx"> }
</span><span class="cx"> return JSValue::encode(JSTestObjectA::getConstructor(state->vm(), castedThis->globalObject()));
</span><span class="cx"> }
</span><span class="lines">@@ -2291,7 +2296,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "conditionalAttr5");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "conditionalAttr5");
</ins><span class="cx"> }
</span><span class="cx"> return JSValue::encode(JSTestObjectB::getConstructor(state->vm(), castedThis->globalObject()));
</span><span class="cx"> }
</span><span class="lines">@@ -2306,7 +2311,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "conditionalAttr6");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "conditionalAttr6");
</ins><span class="cx"> }
</span><span class="cx"> return JSValue::encode(JSTestObjectC::getConstructor(state->vm(), castedThis->globalObject()));
</span><span class="cx"> }
</span><span class="lines">@@ -2320,7 +2325,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "cachedAttribute1");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "cachedAttribute1");
</ins><span class="cx"> }
</span><span class="cx"> if (JSValue cachedValue = castedThis->m_cachedAttribute1.get())
</span><span class="cx"> return JSValue::encode(cachedValue);
</span><span class="lines">@@ -2338,7 +2343,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "cachedAttribute2");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "cachedAttribute2");
</ins><span class="cx"> }
</span><span class="cx"> if (JSValue cachedValue = castedThis->m_cachedAttribute2.get())
</span><span class="cx"> return JSValue::encode(cachedValue);
</span><span class="lines">@@ -2356,7 +2361,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "anyAttribute");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "anyAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = impl.anyAttribute();
</span><span class="lines">@@ -2371,7 +2376,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "contentDocument");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "contentDocument");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> return JSValue::encode(shouldAllowAccessToNode(state, impl.contentDocument()) ? toJS(state, castedThis->globalObject(), impl.contentDocument()) : jsNull());
</span><span class="lines">@@ -2385,7 +2390,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "mutablePoint");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "mutablePoint");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = toJS(state, castedThis->globalObject(), SVGStaticPropertyTearOff<TestObj, SVGPoint>::create(impl, impl.mutablePoint(), &TestObj::updateMutablePoint));
</span><span class="lines">@@ -2400,7 +2405,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "immutablePoint");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "immutablePoint");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = toJS(state, castedThis->globalObject(), SVGPropertyTearOff<SVGPoint>::create(impl.immutablePoint()));
</span><span class="lines">@@ -2415,7 +2420,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "strawberry");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "strawberry");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.blueberry());
</span><span class="lines">@@ -2430,7 +2435,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "strictFloat");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "strictFloat");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.strictFloat());
</span><span class="lines">@@ -2445,7 +2450,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "description");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "description");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.description());
</span><span class="lines">@@ -2460,7 +2465,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "id");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "id");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.id());
</span><span class="lines">@@ -2475,7 +2480,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "hash");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "hash");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsStringWithCache(state, impl.hash());
</span><span class="lines">@@ -2490,7 +2495,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "replaceableAttribute");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "replaceableAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.replaceableAttribute());
</span><span class="lines">@@ -2505,7 +2510,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "nullableDoubleAttribute");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "nullableDoubleAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = toNullableJSNumber(impl.nullableDoubleAttribute());
</span><span class="lines">@@ -2520,7 +2525,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "nullableLongAttribute");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "nullableLongAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = toNullableJSNumber(impl.nullableLongAttribute());
</span><span class="lines">@@ -2535,7 +2540,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "nullableBooleanAttribute");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "nullableBooleanAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsBoolean(impl.nullableBooleanAttribute());
</span><span class="lines">@@ -2550,7 +2555,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "nullableStringAttribute");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "nullableStringAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsStringOrNull(state, impl.nullableStringAttribute());
</span><span class="lines">@@ -2565,7 +2570,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "nullableLongSettableAttribute");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "nullableLongSettableAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = toNullableJSNumber(impl.nullableLongSettableAttribute());
</span><span class="lines">@@ -2580,7 +2585,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "nullableStringSettableAttribute");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "nullableStringSettableAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsStringOrNull(state, impl.nullableStringSettableAttribute());
</span><span class="lines">@@ -2595,7 +2600,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "nullableStringValue");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "nullableStringValue");
</ins><span class="cx"> }
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="lines">@@ -2612,7 +2617,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "attribute");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "attribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsStringWithCache(state, impl.attribute());
</span><span class="lines">@@ -2627,7 +2632,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "attributeWithReservedEnumType");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "attributeWithReservedEnumType");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsStringWithCache(state, impl.attributeWithReservedEnumType());
</span><span class="lines">@@ -2642,7 +2647,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "putForwardsAttribute");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "putForwardsAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = toJS(state, castedThis->globalObject(), impl.putForwardsAttribute());
</span><span class="lines">@@ -2657,7 +2662,7 @@
</span><span class="cx"> JSValue decodedThisValue = JSValue::decode(thisValue);
</span><span class="cx"> auto* castedThis = jsDynamicCast<JSTestObj*>(decodedThisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwGetterTypeError(*state, "TestObj", "putForwardsNullableAttribute");
</del><ins>+ return throwGetterTypeError(*state, "TestObject", "putForwardsNullableAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = toJS(state, castedThis->globalObject(), impl.putForwardsNullableAttribute());
</span><span class="lines">@@ -2702,7 +2707,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "TestSubObjEnabledBySetting");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "TestSubObjEnabledBySetting");
</ins><span class="cx"> }
</span><span class="cx"> // Shadowing a built-in constructor.
</span><span class="cx"> return castedThis->putDirect(state->vm(), Identifier::fromString(state, "TestSubObjEnabledBySetting"), value);
</span><span class="lines">@@ -2715,7 +2720,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "enumAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "enumAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = parse<TestObj::EnumType>(*state, value);
</span><span class="lines">@@ -2734,7 +2739,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "byteAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "byteAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<int8_t>(*state, value, NormalConversion);
</span><span class="lines">@@ -2751,7 +2756,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "octetAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "octetAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<uint8_t>(*state, value, NormalConversion);
</span><span class="lines">@@ -2768,7 +2773,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "shortAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "shortAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<int16_t>(*state, value, NormalConversion);
</span><span class="lines">@@ -2785,7 +2790,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "clampedShortAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "clampedShortAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<int16_t>(*state, value, Clamp);
</span><span class="lines">@@ -2802,7 +2807,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "enforceRangeShortAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "enforceRangeShortAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<int16_t>(*state, value, EnforceRange);
</span><span class="lines">@@ -2819,7 +2824,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "unsignedShortAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "unsignedShortAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<uint16_t>(*state, value, NormalConversion);
</span><span class="lines">@@ -2836,7 +2841,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "longAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "longAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<int32_t>(*state, value, NormalConversion);
</span><span class="lines">@@ -2853,7 +2858,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "longLongAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "longLongAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<int64_t>(*state, value, NormalConversion);
</span><span class="lines">@@ -2870,7 +2875,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "unsignedLongLongAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "unsignedLongLongAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<uint64_t>(*state, value, NormalConversion);
</span><span class="lines">@@ -2887,7 +2892,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "stringAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "stringAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = value.toWTFString(state);
</span><span class="lines">@@ -2904,12 +2909,12 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "testObjAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "testObjAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = JSTestObj::toWrapped(value);
</span><span class="cx"> if (UNLIKELY(!nativeValue)) {
</span><del>- throwAttributeTypeError(*state, "TestObj", "testObjAttr", "TestObj");
</del><ins>+ throwAttributeTypeError(*state, "TestObject", "testObjAttr", "TestObj");
</ins><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx"> impl.setTestObjAttr(*nativeValue);
</span><span class="lines">@@ -2923,7 +2928,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "testNullableObjAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "testNullableObjAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = JSTestObj::toWrapped(value);
</span><span class="lines">@@ -2943,7 +2948,7 @@
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = JSTestObj::toWrapped(value);
</span><span class="cx"> if (UNLIKELY(!nativeValue)) {
</span><del>- throwAttributeTypeError(*state, "TestObj", "lenientTestObjAttr", "TestObj");
</del><ins>+ throwAttributeTypeError(*state, "TestObject", "lenientTestObjAttr", "TestObj");
</ins><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx"> impl.setLenientTestObjAttr(*nativeValue);
</span><span class="lines">@@ -2957,7 +2962,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "stringAttrTreatingNullAsEmptyString");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "stringAttrTreatingNullAsEmptyString");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = valueToStringTreatingNullAsEmptyString(state, value);
</span><span class="lines">@@ -2974,12 +2979,12 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "XMLObjAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "XMLObjAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = JSTestObj::toWrapped(value);
</span><span class="cx"> if (UNLIKELY(!nativeValue)) {
</span><del>- throwAttributeTypeError(*state, "TestObj", "XMLObjAttr", "TestObj");
</del><ins>+ throwAttributeTypeError(*state, "TestObject", "XMLObjAttr", "TestObj");
</ins><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx"> impl.setXMLObjAttr(*nativeValue);
</span><span class="lines">@@ -2993,7 +2998,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "create");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "create");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = value.toBoolean(state);
</span><span class="lines">@@ -3010,7 +3015,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "reflectedStringAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "reflectedStringAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = value.toWTFString(state);
</span><span class="lines">@@ -3027,7 +3032,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "reflectedIntegralAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "reflectedIntegralAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<int32_t>(*state, value, NormalConversion);
</span><span class="lines">@@ -3044,7 +3049,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "reflectedUnsignedIntegralAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "reflectedUnsignedIntegralAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<uint32_t>(*state, value, NormalConversion);
</span><span class="lines">@@ -3061,7 +3066,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "reflectedBooleanAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "reflectedBooleanAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = value.toBoolean(state);
</span><span class="lines">@@ -3078,7 +3083,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "reflectedURLAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "reflectedURLAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = value.toWTFString(state);
</span><span class="lines">@@ -3095,7 +3100,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "reflectedStringAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "reflectedStringAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = value.toWTFString(state);
</span><span class="lines">@@ -3112,7 +3117,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "reflectedCustomIntegralAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "reflectedCustomIntegralAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<int32_t>(*state, value, NormalConversion);
</span><span class="lines">@@ -3129,7 +3134,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "reflectedCustomBooleanAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "reflectedCustomBooleanAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = value.toBoolean(state);
</span><span class="lines">@@ -3146,7 +3151,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "reflectedCustomURLAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "reflectedCustomURLAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = value.toWTFString(state);
</span><span class="lines">@@ -3164,7 +3169,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "enabledAtRuntimeAttribute");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "enabledAtRuntimeAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = value.toWTFString(state);
</span><span class="lines">@@ -3182,7 +3187,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "typedArrayAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "typedArrayAttr");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = toFloat32Array(value);
</span><span class="lines">@@ -3189,7 +3194,7 @@
</span><span class="cx"> if (UNLIKELY(state->hadException()))
</span><span class="cx"> return false;
</span><span class="cx"> if (UNLIKELY(!nativeValue)) {
</span><del>- throwAttributeTypeError(*state, "TestObj", "typedArrayAttr", "Float32Array");
</del><ins>+ throwAttributeTypeError(*state, "TestObject", "typedArrayAttr", "Float32Array");
</ins><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx"> impl.setTypedArrayAttr(nativeValue.get());
</span><span class="lines">@@ -3203,7 +3208,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "attrWithGetterException");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "attrWithGetterException");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<int32_t>(*state, value, NormalConversion);
</span><span class="lines">@@ -3220,7 +3225,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "attrWithGetterExceptionWithMessage");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "attrWithGetterExceptionWithMessage");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<int32_t>(*state, value, NormalConversion);
</span><span class="lines">@@ -3237,7 +3242,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "attrWithSetterException");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "attrWithSetterException");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="lines">@@ -3256,7 +3261,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "attrWithSetterExceptionWithMessage");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "attrWithSetterExceptionWithMessage");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> ExceptionCodeWithMessage ec;
</span><span class="lines">@@ -3275,7 +3280,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "stringAttrWithGetterException");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "stringAttrWithGetterException");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = value.toWTFString(state);
</span><span class="lines">@@ -3292,7 +3297,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "stringAttrWithSetterException");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "stringAttrWithSetterException");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="lines">@@ -3311,7 +3316,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "strictTypeCheckingAttribute");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "strictTypeCheckingAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> TestObj* nativeValue = nullptr;
</span><span class="lines">@@ -3318,7 +3323,7 @@
</span><span class="cx"> if (!value.isUndefinedOrNull()) {
</span><span class="cx"> nativeValue = JSTestObj::toWrapped(value);
</span><span class="cx"> if (UNLIKELY(!nativeValue)) {
</span><del>- throwAttributeTypeError(*state, "TestObj", "strictTypeCheckingAttribute", "TestObj");
</del><ins>+ throwAttributeTypeError(*state, "TestObject", "strictTypeCheckingAttribute", "TestObj");
</ins><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx"> }
</span><span class="lines">@@ -3333,7 +3338,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "customAttr");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "customAttr");
</ins><span class="cx"> }
</span><span class="cx"> castedThis->setCustomAttr(*state, value);
</span><span class="cx"> return true;
</span><span class="lines">@@ -3346,7 +3351,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "onfoo");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "onfoo");
</ins><span class="cx"> }
</span><span class="cx"> setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().fooEvent, value);
</span><span class="cx"> return true;
</span><span class="lines">@@ -3359,7 +3364,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "onwebkitfoo");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "onwebkitfoo");
</ins><span class="cx"> }
</span><span class="cx"> setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().fooEvent, value);
</span><span class="cx"> return true;
</span><span class="lines">@@ -3372,7 +3377,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "withScriptStateAttribute");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "withScriptStateAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<int32_t>(*state, value, NormalConversion);
</span><span class="lines">@@ -3389,7 +3394,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "withCallWithAndSetterCallWithAttribute");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "withCallWithAndSetterCallWithAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<int32_t>(*state, value, NormalConversion);
</span><span class="lines">@@ -3406,12 +3411,12 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "withScriptExecutionContextAttribute");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "withScriptExecutionContextAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = JSTestObj::toWrapped(value);
</span><span class="cx"> if (UNLIKELY(!nativeValue)) {
</span><del>- throwAttributeTypeError(*state, "TestObj", "withScriptExecutionContextAttribute", "TestObj");
</del><ins>+ throwAttributeTypeError(*state, "TestObject", "withScriptExecutionContextAttribute", "TestObj");
</ins><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx"> auto* context = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</span><span class="lines">@@ -3428,12 +3433,12 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "withScriptStateAttributeRaises");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "withScriptStateAttributeRaises");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = JSTestObj::toWrapped(value);
</span><span class="cx"> if (UNLIKELY(!nativeValue)) {
</span><del>- throwAttributeTypeError(*state, "TestObj", "withScriptStateAttributeRaises", "TestObj");
</del><ins>+ throwAttributeTypeError(*state, "TestObject", "withScriptStateAttributeRaises", "TestObj");
</ins><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx"> impl.setWithScriptStateAttributeRaises(*state, *nativeValue);
</span><span class="lines">@@ -3447,12 +3452,12 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "withScriptExecutionContextAttributeRaises");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "withScriptExecutionContextAttributeRaises");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = JSTestObj::toWrapped(value);
</span><span class="cx"> if (UNLIKELY(!nativeValue)) {
</span><del>- throwAttributeTypeError(*state, "TestObj", "withScriptExecutionContextAttributeRaises", "TestObj");
</del><ins>+ throwAttributeTypeError(*state, "TestObject", "withScriptExecutionContextAttributeRaises", "TestObj");
</ins><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx"> auto* context = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</span><span class="lines">@@ -3469,12 +3474,12 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateAttribute");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = JSTestObj::toWrapped(value);
</span><span class="cx"> if (UNLIKELY(!nativeValue)) {
</span><del>- throwAttributeTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateAttribute", "TestObj");
</del><ins>+ throwAttributeTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateAttribute", "TestObj");
</ins><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx"> auto* context = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</span><span class="lines">@@ -3491,12 +3496,12 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateAttributeRaises");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateAttributeRaises");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = JSTestObj::toWrapped(value);
</span><span class="cx"> if (UNLIKELY(!nativeValue)) {
</span><del>- throwAttributeTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateAttributeRaises", "TestObj");
</del><ins>+ throwAttributeTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateAttributeRaises", "TestObj");
</ins><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx"> auto* context = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</span><span class="lines">@@ -3513,12 +3518,12 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateWithSpacesAttribute");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateWithSpacesAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = JSTestObj::toWrapped(value);
</span><span class="cx"> if (UNLIKELY(!nativeValue)) {
</span><del>- throwAttributeTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateWithSpacesAttribute", "TestObj");
</del><ins>+ throwAttributeTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateWithSpacesAttribute", "TestObj");
</ins><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx"> auto* context = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</span><span class="lines">@@ -3535,12 +3540,12 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "withScriptArgumentsAndCallStackAttribute");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "withScriptArgumentsAndCallStackAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = JSTestObj::toWrapped(value);
</span><span class="cx"> if (UNLIKELY(!nativeValue)) {
</span><del>- throwAttributeTypeError(*state, "TestObj", "withScriptArgumentsAndCallStackAttribute", "TestObj");
</del><ins>+ throwAttributeTypeError(*state, "TestObject", "withScriptArgumentsAndCallStackAttribute", "TestObj");
</ins><span class="cx"> return false;
</span><span class="cx"> }
</span><span class="cx"> impl.setWithScriptArgumentsAndCallStackAttribute(*nativeValue);
</span><span class="lines">@@ -3555,7 +3560,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "conditionalAttr1");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "conditionalAttr1");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<int32_t>(*state, value, NormalConversion);
</span><span class="lines">@@ -3574,7 +3579,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "conditionalAttr2");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "conditionalAttr2");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<int32_t>(*state, value, NormalConversion);
</span><span class="lines">@@ -3593,7 +3598,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "conditionalAttr3");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "conditionalAttr3");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<int32_t>(*state, value, NormalConversion);
</span><span class="lines">@@ -3612,7 +3617,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "conditionalAttr4");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "conditionalAttr4");
</ins><span class="cx"> }
</span><span class="cx"> // Shadowing a built-in constructor.
</span><span class="cx"> return castedThis->putDirect(state->vm(), Identifier::fromString(state, "conditionalAttr4"), value);
</span><span class="lines">@@ -3627,7 +3632,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "conditionalAttr5");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "conditionalAttr5");
</ins><span class="cx"> }
</span><span class="cx"> // Shadowing a built-in constructor.
</span><span class="cx"> return castedThis->putDirect(state->vm(), Identifier::fromString(state, "conditionalAttr5"), value);
</span><span class="lines">@@ -3642,7 +3647,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "conditionalAttr6");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "conditionalAttr6");
</ins><span class="cx"> }
</span><span class="cx"> // Shadowing a built-in constructor.
</span><span class="cx"> return castedThis->putDirect(state->vm(), Identifier::fromString(state, "conditionalAttr6"), value);
</span><span class="lines">@@ -3656,7 +3661,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "anyAttribute");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "anyAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = value;
</span><span class="lines">@@ -3671,7 +3676,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "mutablePoint");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "mutablePoint");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = JSSVGPoint::toWrapped(value);
</span><span class="lines">@@ -3686,7 +3691,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "immutablePoint");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "immutablePoint");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = JSSVGPoint::toWrapped(value);
</span><span class="lines">@@ -3701,7 +3706,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "strawberry");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "strawberry");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<int32_t>(*state, value, NormalConversion);
</span><span class="lines">@@ -3718,7 +3723,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "strictFloat");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "strictFloat");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<float>(*state, value, ShouldAllowNonFinite::Yes);
</span><span class="lines">@@ -3735,7 +3740,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "id");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "id");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<int32_t>(*state, value, NormalConversion);
</span><span class="lines">@@ -3752,7 +3757,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "replaceableAttribute");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "replaceableAttribute");
</ins><span class="cx"> }
</span><span class="cx"> // Shadowing a built-in property.
</span><span class="cx"> return castedThis->putDirect(state->vm(), Identifier::fromString(state, "replaceableAttribute"), value);
</span><span class="lines">@@ -3765,7 +3770,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "nullableLongSettableAttribute");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "nullableLongSettableAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<int32_t>(*state, value, NormalConversion);
</span><span class="lines">@@ -3782,7 +3787,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "nullableStringSettableAttribute");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "nullableStringSettableAttribute");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = valueToStringWithUndefinedOrNullCheck(state, value);
</span><span class="lines">@@ -3799,7 +3804,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "nullableStringValue");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "nullableStringValue");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = convert<int32_t>(*state, value, NormalConversion);
</span><span class="lines">@@ -3816,7 +3821,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "attributeWithReservedEnumType");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "attributeWithReservedEnumType");
</ins><span class="cx"> }
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto nativeValue = parse<TestObj::Optional>(*state, value);
</span><span class="lines">@@ -3835,7 +3840,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "putForwardsAttribute");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "putForwardsAttribute");
</ins><span class="cx"> }
</span><span class="cx"> Ref<TestNode> forwardedImpl = castedThis->wrapped().putForwardsAttribute();
</span><span class="cx"> auto& impl = forwardedImpl.get();
</span><span class="lines">@@ -3853,7 +3858,7 @@
</span><span class="cx"> UNUSED_PARAM(thisValue);
</span><span class="cx"> JSTestObj* castedThis = jsDynamicCast<JSTestObj*>(JSValue::decode(thisValue));
</span><span class="cx"> if (UNLIKELY(!castedThis)) {
</span><del>- return throwSetterTypeError(*state, "TestObj", "putForwardsNullableAttribute");
</del><ins>+ return throwSetterTypeError(*state, "TestObject", "putForwardsNullableAttribute");
</ins><span class="cx"> }
</span><span class="cx"> RefPtr<TestNode> forwardedImpl = castedThis->wrapped().putForwardsNullableAttribute();
</span><span class="cx"> if (!forwardedImpl)
</span><span class="lines">@@ -3887,7 +3892,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "enabledAtRuntimeOperation");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "enabledAtRuntimeOperation");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -3907,7 +3912,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "enabledAtRuntimeOperation");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "enabledAtRuntimeOperation");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -3944,7 +3949,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "voidMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "voidMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> impl.voidMethod();
</span><span class="lines">@@ -3956,7 +3961,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "voidMethodWithArgs");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "voidMethodWithArgs");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 3))
</span><span class="lines">@@ -3969,7 +3974,7 @@
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> auto objArg = JSTestObj::toWrapped(state->argument(2));
</span><span class="cx"> if (UNLIKELY(!objArg))
</span><del>- return throwArgumentTypeError(*state, 2, "objArg", "TestObj", "voidMethodWithArgs", "TestObj");
</del><ins>+ return throwArgumentTypeError(*state, 2, "objArg", "TestObject", "voidMethodWithArgs", "TestObj");
</ins><span class="cx"> impl.voidMethodWithArgs(WTFMove(longArg), WTFMove(strArg), *objArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="lines">@@ -3979,7 +3984,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "byteMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "byteMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.byteMethod());
</span><span class="lines">@@ -3991,7 +3996,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "byteMethodWithArgs");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "byteMethodWithArgs");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 3))
</span><span class="lines">@@ -4004,7 +4009,7 @@
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> auto objArg = JSTestObj::toWrapped(state->argument(2));
</span><span class="cx"> if (UNLIKELY(!objArg))
</span><del>- return throwArgumentTypeError(*state, 2, "objArg", "TestObj", "byteMethodWithArgs", "TestObj");
</del><ins>+ return throwArgumentTypeError(*state, 2, "objArg", "TestObject", "byteMethodWithArgs", "TestObj");
</ins><span class="cx"> JSValue result = jsNumber(impl.byteMethodWithArgs(WTFMove(byteArg), WTFMove(strArg), *objArg));
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -4014,7 +4019,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "octetMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "octetMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.octetMethod());
</span><span class="lines">@@ -4026,7 +4031,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "octetMethodWithArgs");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "octetMethodWithArgs");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 3))
</span><span class="lines">@@ -4039,7 +4044,7 @@
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> auto objArg = JSTestObj::toWrapped(state->argument(2));
</span><span class="cx"> if (UNLIKELY(!objArg))
</span><del>- return throwArgumentTypeError(*state, 2, "objArg", "TestObj", "octetMethodWithArgs", "TestObj");
</del><ins>+ return throwArgumentTypeError(*state, 2, "objArg", "TestObject", "octetMethodWithArgs", "TestObj");
</ins><span class="cx"> JSValue result = jsNumber(impl.octetMethodWithArgs(WTFMove(octetArg), WTFMove(strArg), *objArg));
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -4049,7 +4054,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "longMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "longMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.longMethod());
</span><span class="lines">@@ -4061,7 +4066,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "longMethodWithArgs");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "longMethodWithArgs");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 3))
</span><span class="lines">@@ -4074,7 +4079,7 @@
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> auto objArg = JSTestObj::toWrapped(state->argument(2));
</span><span class="cx"> if (UNLIKELY(!objArg))
</span><del>- return throwArgumentTypeError(*state, 2, "objArg", "TestObj", "longMethodWithArgs", "TestObj");
</del><ins>+ return throwArgumentTypeError(*state, 2, "objArg", "TestObject", "longMethodWithArgs", "TestObj");
</ins><span class="cx"> JSValue result = jsNumber(impl.longMethodWithArgs(WTFMove(longArg), WTFMove(strArg), *objArg));
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -4084,7 +4089,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "objMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "objMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = toJS(state, castedThis->globalObject(), impl.objMethod());
</span><span class="lines">@@ -4096,7 +4101,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "objMethodWithArgs");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "objMethodWithArgs");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 3))
</span><span class="lines">@@ -4109,7 +4114,7 @@
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> auto objArg = JSTestObj::toWrapped(state->argument(2));
</span><span class="cx"> if (UNLIKELY(!objArg))
</span><del>- return throwArgumentTypeError(*state, 2, "objArg", "TestObj", "objMethodWithArgs", "TestObj");
</del><ins>+ return throwArgumentTypeError(*state, 2, "objArg", "TestObject", "objMethodWithArgs", "TestObj");
</ins><span class="cx"> JSValue result = toJS(state, castedThis->globalObject(), impl.objMethodWithArgs(WTFMove(longArg), WTFMove(strArg), *objArg));
</span><span class="cx"> return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="lines">@@ -4119,7 +4124,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "unforgeableMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "unforgeableMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsNumber(impl.unforgeableMethod());
</span><span class="lines">@@ -4131,7 +4136,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithArgTreatingNullAsEmptyString");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithArgTreatingNullAsEmptyString");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -4148,7 +4153,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithXPathNSResolverParameter");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithXPathNSResolverParameter");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -4157,7 +4162,7 @@
</span><span class="cx"> if (UNLIKELY(state->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> if (UNLIKELY(!resolver))
</span><del>- return throwArgumentTypeError(*state, 0, "resolver", "TestObj", "methodWithXPathNSResolverParameter", "XPathNSResolver");
</del><ins>+ return throwArgumentTypeError(*state, 0, "resolver", "TestObject", "methodWithXPathNSResolverParameter", "XPathNSResolver");
</ins><span class="cx"> impl.methodWithXPathNSResolverParameter(*resolver);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="lines">@@ -4167,7 +4172,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "nullableStringMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "nullableStringMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsStringOrNull(state, impl.nullableStringMethod());
</span><span class="lines">@@ -4185,7 +4190,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "nullableStringSpecialMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "nullableStringSpecialMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -4202,7 +4207,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithEnumArg");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithEnumArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -4213,7 +4218,7 @@
</span><span class="cx"> if (UNLIKELY(state->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> if (UNLIKELY(!optionalValue))
</span><del>- return throwArgumentMustBeEnumError(*state, 0, "enumArg", "TestObj", "methodWithEnumArg", expectedEnumerationValues<TestObj::EnumType>());
</del><ins>+ return throwArgumentMustBeEnumError(*state, 0, "enumArg", "TestObject", "methodWithEnumArg", expectedEnumerationValues<TestObj::EnumType>());
</ins><span class="cx"> enumArg = optionalValue.value();
</span><span class="cx"> impl.methodWithEnumArg(enumArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="lines">@@ -4224,7 +4229,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalEnumArg");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalEnumArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto enumArgValue = state->argument(0);
</span><span class="lines">@@ -4234,7 +4239,7 @@
</span><span class="cx"> if (UNLIKELY(state->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> if (UNLIKELY(!enumArg))
</span><del>- return throwArgumentMustBeEnumError(*state, 0, "enumArg", "TestObj", "methodWithOptionalEnumArg", expectedEnumerationValues<TestObj::EnumType>());
</del><ins>+ return throwArgumentMustBeEnumError(*state, 0, "enumArg", "TestObject", "methodWithOptionalEnumArg", expectedEnumerationValues<TestObj::EnumType>());
</ins><span class="cx"> }
</span><span class="cx"> impl.methodWithOptionalEnumArg(enumArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="lines">@@ -4245,7 +4250,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalEnumArgAndDefaultValue");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalEnumArgAndDefaultValue");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto enumArgValue = state->argument(0);
</span><span class="lines">@@ -4257,7 +4262,7 @@
</span><span class="cx"> if (UNLIKELY(state->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> if (UNLIKELY(!optionalValue))
</span><del>- return throwArgumentMustBeEnumError(*state, 0, "enumArg", "TestObj", "methodWithOptionalEnumArgAndDefaultValue", expectedEnumerationValues<TestObj::EnumType>());
</del><ins>+ return throwArgumentMustBeEnumError(*state, 0, "enumArg", "TestObject", "methodWithOptionalEnumArgAndDefaultValue", expectedEnumerationValues<TestObj::EnumType>());
</ins><span class="cx"> enumArg = optionalValue.value();
</span><span class="cx"> }
</span><span class="cx"> impl.methodWithOptionalEnumArgAndDefaultValue(enumArg);
</span><span class="lines">@@ -4269,7 +4274,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodThatRequiresAllArgsAndThrows");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodThatRequiresAllArgsAndThrows");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 2))
</span><span class="lines">@@ -4280,7 +4285,7 @@
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> auto objArg = JSTestObj::toWrapped(state->argument(1));
</span><span class="cx"> if (UNLIKELY(!objArg))
</span><del>- return throwArgumentTypeError(*state, 1, "objArg", "TestObj", "methodThatRequiresAllArgsAndThrows", "TestObj");
</del><ins>+ return throwArgumentTypeError(*state, 1, "objArg", "TestObject", "methodThatRequiresAllArgsAndThrows", "TestObj");
</ins><span class="cx"> JSValue result = toJS(state, castedThis->globalObject(), impl.methodThatRequiresAllArgsAndThrows(WTFMove(strArg), *objArg, ec));
</span><span class="cx">
</span><span class="cx"> setDOMException(state, ec);
</span><span class="lines">@@ -4292,7 +4297,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "serializedValue");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "serializedValue");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -4309,7 +4314,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "optionsObject");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "optionsObject");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -4325,7 +4330,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithException");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithException");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="lines">@@ -4339,7 +4344,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithExceptionWithMessage");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithExceptionWithMessage");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> ExceptionCodeWithMessage ec;
</span><span class="lines">@@ -4353,7 +4358,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "customMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "customMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> return JSValue::encode(castedThis->customMethod(*state));
</span><span class="cx"> }
</span><span class="lines">@@ -4363,7 +4368,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "customMethodWithArgs");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "customMethodWithArgs");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> return JSValue::encode(castedThis->customMethodWithArgs(*state));
</span><span class="cx"> }
</span><span class="lines">@@ -4373,7 +4378,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "privateMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "privateMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -4390,7 +4395,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "publicAndPrivateMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "publicAndPrivateMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -4407,7 +4412,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "addEventListener");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "addEventListener");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 2))
</span><span class="lines">@@ -4417,7 +4422,7 @@
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> auto listener = JSEventListener::create(state->argument(1), *castedThis, false, currentWorld(state));
</span><span class="cx"> if (UNLIKELY(!listener))
</span><del>- return throwArgumentTypeError(*state, 1, "listener", "TestObj", "addEventListener", "EventListener");
</del><ins>+ return throwArgumentTypeError(*state, 1, "listener", "TestObject", "addEventListener", "EventListener");
</ins><span class="cx"> auto useCapture = state->argument(2).toBoolean(state);
</span><span class="cx"> if (UNLIKELY(state->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="lines">@@ -4430,7 +4435,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "removeEventListener");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "removeEventListener");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 2))
</span><span class="lines">@@ -4440,7 +4445,7 @@
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> auto listener = JSEventListener::create(state->argument(1), *castedThis, false, currentWorld(state));
</span><span class="cx"> if (UNLIKELY(!listener))
</span><del>- return throwArgumentTypeError(*state, 1, "listener", "TestObj", "removeEventListener", "EventListener");
</del><ins>+ return throwArgumentTypeError(*state, 1, "listener", "TestObject", "removeEventListener", "EventListener");
</ins><span class="cx"> auto useCapture = state->argument(2).toBoolean(state);
</span><span class="cx"> if (UNLIKELY(state->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="lines">@@ -4453,7 +4458,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "withScriptStateVoid");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "withScriptStateVoid");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> impl.withScriptStateVoid(*state);
</span><span class="lines">@@ -4465,7 +4470,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "withScriptStateObj");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "withScriptStateObj");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = toJS(state, castedThis->globalObject(), impl.withScriptStateObj(*state));
</span><span class="lines">@@ -4479,7 +4484,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "withScriptStateVoidException");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "withScriptStateVoidException");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="lines">@@ -4493,7 +4498,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "withScriptStateObjException");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "withScriptStateObjException");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="lines">@@ -4510,7 +4515,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "withScriptExecutionContext");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "withScriptExecutionContext");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto* context = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</span><span class="lines">@@ -4525,7 +4530,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptState");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptState");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto* context = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</span><span class="lines">@@ -4540,7 +4545,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateObjException");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateObjException");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="lines">@@ -4560,7 +4565,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "withScriptExecutionContextAndScriptStateWithSpaces");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "withScriptExecutionContextAndScriptStateWithSpaces");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto* context = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</span><span class="lines">@@ -4577,7 +4582,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "withScriptArgumentsAndCallStack");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "withScriptArgumentsAndCallStack");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> RefPtr<Inspector::ScriptArguments> scriptArguments(Inspector::createScriptArguments(state, 0));
</span><span class="lines">@@ -4590,7 +4595,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "withDocumentArgument");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "withDocumentArgument");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto* context = jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject())->scriptExecutionContext();
</span><span class="lines">@@ -4607,7 +4612,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "withCallerDocumentArgument");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "withCallerDocumentArgument");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto* document = callerDOMWindow(state).document();
</span><span class="lines">@@ -4622,7 +4627,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "withCallerWindowArgument");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "withCallerWindowArgument");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> impl.withCallerWindowArgument(callerDOMWindow(state));
</span><span class="lines">@@ -4634,7 +4639,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalArg");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto opt = state->argument(0).isUndefined() ? Optional<int32_t>() : convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion);
</span><span class="lines">@@ -4649,7 +4654,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalArgAndDefaultValue");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalArgAndDefaultValue");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto opt = state->argument(0).isUndefined() ? 666 : convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion);
</span><span class="lines">@@ -4664,7 +4669,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithNonOptionalArgAndOptionalArg");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithNonOptionalArgAndOptionalArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -4684,7 +4689,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithNonOptionalArgAndTwoOptionalArgs");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithNonOptionalArgAndTwoOptionalArgs");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -4707,7 +4712,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalString");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalString");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto str = state->argument(0).isUndefined() ? String() : state->uncheckedArgument(0).toWTFString(state);
</span><span class="lines">@@ -4722,7 +4727,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalAtomicString");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalAtomicString");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto str = state->argument(0).isUndefined() ? nullAtom : state->uncheckedArgument(0).toString(state)->toAtomicString(state);
</span><span class="lines">@@ -4737,7 +4742,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalStringAndDefaultValue");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalStringAndDefaultValue");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto str = state->argument(0).isUndefined() ? ASCIILiteral("foo") : state->uncheckedArgument(0).toWTFString(state);
</span><span class="lines">@@ -4752,7 +4757,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalAtomicStringAndDefaultValue");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalAtomicStringAndDefaultValue");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto str = state->argument(0).isUndefined() ? AtomicString("foo", AtomicString::ConstructFromLiteral) : state->uncheckedArgument(0).toString(state)->toAtomicString(state);
</span><span class="lines">@@ -4767,7 +4772,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalStringIsNull");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalStringIsNull");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto str = state->argument(0).isUndefined() ? String() : state->uncheckedArgument(0).toWTFString(state);
</span><span class="lines">@@ -4782,7 +4787,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalStringIsUndefined");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalStringIsUndefined");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto str = state->argument(0).toWTFString(state);
</span><span class="lines">@@ -4797,7 +4802,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalAtomicStringIsNull");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalAtomicStringIsNull");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto str = state->argument(0).isUndefined() ? nullAtom : state->uncheckedArgument(0).toString(state)->toAtomicString(state);
</span><span class="lines">@@ -4812,7 +4817,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalStringIsEmptyString");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalStringIsEmptyString");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto str = state->argument(0).isUndefined() ? emptyString() : state->uncheckedArgument(0).toWTFString(state);
</span><span class="lines">@@ -4827,7 +4832,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalAtomicStringIsEmptyString");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalAtomicStringIsEmptyString");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto str = state->argument(0).isUndefined() ? emptyAtom : state->uncheckedArgument(0).toString(state)->toAtomicString(state);
</span><span class="lines">@@ -4842,7 +4847,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalDoubleIsNaN");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalDoubleIsNaN");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto number = convert<double>(*state, state->argument(0), ShouldAllowNonFinite::Yes);
</span><span class="lines">@@ -4857,7 +4862,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalFloatIsNaN");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalFloatIsNaN");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto number = convert<float>(*state, state->argument(0), ShouldAllowNonFinite::Yes);
</span><span class="lines">@@ -4872,7 +4877,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalSequence");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalSequence");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto sequence = toNativeArray<String>(*state, state->argument(0));
</span><span class="lines">@@ -4887,7 +4892,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalLongLong");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalLongLong");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto number = state->argument(0).isUndefined() ? Optional<int64_t>() : convert<int64_t>(*state, state->uncheckedArgument(0), NormalConversion);
</span><span class="lines">@@ -4902,7 +4907,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalLongLongIsZero");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalLongLongIsZero");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto number = convert<int64_t>(*state, state->argument(0), NormalConversion);
</span><span class="lines">@@ -4917,7 +4922,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalUnsignedLongLong");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalUnsignedLongLong");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto number = state->argument(0).isUndefined() ? Optional<uint64_t>() : convert<uint64_t>(*state, state->uncheckedArgument(0), NormalConversion);
</span><span class="lines">@@ -4932,7 +4937,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalUnsignedLongLongIsZero");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalUnsignedLongLongIsZero");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto number = convert<uint64_t>(*state, state->argument(0), NormalConversion);
</span><span class="lines">@@ -4947,7 +4952,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalArray");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalArray");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto array = state->argument(0).isUndefined() ? Optional<Vector<String>>() : toNativeArray<String>(*state, state->uncheckedArgument(0));
</span><span class="lines">@@ -4962,7 +4967,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalArrayIsEmpty");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalArrayIsEmpty");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto array = toNativeArray<String>(*state, state->argument(0));
</span><span class="lines">@@ -4977,7 +4982,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalBoolean");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalBoolean");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto b = state->argument(0).isUndefined() ? Optional<bool>() : state->uncheckedArgument(0).toBoolean(state);
</span><span class="lines">@@ -4992,7 +4997,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalBooleanIsFalse");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalBooleanIsFalse");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto b = state->argument(0).toBoolean(state);
</span><span class="lines">@@ -5007,7 +5012,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalAny");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalAny");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto a = state->argument(0);
</span><span class="lines">@@ -5020,7 +5025,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalNullableWrapper");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalNullableWrapper");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto obj = JSTestObj::toWrapped(state->argument(0));
</span><span class="lines">@@ -5033,7 +5038,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalNullableWrapperIsNull");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalNullableWrapperIsNull");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto obj = JSTestObj::toWrapped(state->argument(0));
</span><span class="lines">@@ -5046,7 +5051,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithOptionalXPathNSResolver");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithOptionalXPathNSResolver");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto resolver = JSXPathNSResolver::toWrapped(*state, state->argument(0));
</span><span class="lines">@@ -5061,13 +5066,13 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithCallbackArg");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithCallbackArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="cx"> return throwVMError(state, createNotEnoughArgumentsError(state));
</span><span class="cx"> if (UNLIKELY(!state->argument(0).isObject()))
</span><del>- return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "methodWithCallbackArg");
</del><ins>+ return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObject", "methodWithCallbackArg");
</ins><span class="cx"> auto callback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</span><span class="cx"> impl.methodWithCallbackArg(WTFMove(callback));
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="lines">@@ -5078,7 +5083,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithNonCallbackArgAndCallbackArg");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithNonCallbackArgAndCallbackArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 2))
</span><span class="lines">@@ -5087,7 +5092,7 @@
</span><span class="cx"> if (UNLIKELY(state->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> if (UNLIKELY(!state->argument(1).isObject()))
</span><del>- return throwArgumentMustBeFunctionError(*state, 1, "callback", "TestObj", "methodWithNonCallbackArgAndCallbackArg");
</del><ins>+ return throwArgumentMustBeFunctionError(*state, 1, "callback", "TestObject", "methodWithNonCallbackArgAndCallbackArg");
</ins><span class="cx"> auto callback = JSTestCallback::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
</span><span class="cx"> impl.methodWithNonCallbackArgAndCallbackArg(WTFMove(nonCallback), WTFMove(callback));
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="lines">@@ -5098,13 +5103,13 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithCallbackAndOptionalArg");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithCallbackAndOptionalArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> RefPtr<TestCallback> callback;
</span><span class="cx"> if (!state->argument(0).isUndefinedOrNull()) {
</span><span class="cx"> if (!state->uncheckedArgument(0).isObject())
</span><del>- return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "methodWithCallbackAndOptionalArg");
</del><ins>+ return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObject", "methodWithCallbackAndOptionalArg");
</ins><span class="cx"> callback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</span><span class="cx"> }
</span><span class="cx"> impl.methodWithCallbackAndOptionalArg(WTFMove(callback));
</span><span class="lines">@@ -5116,13 +5121,13 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithCallbackFunctionArg");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithCallbackFunctionArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="cx"> return throwVMError(state, createNotEnoughArgumentsError(state));
</span><span class="cx"> if (UNLIKELY(!state->argument(0).isFunction()))
</span><del>- return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "methodWithCallbackFunctionArg");
</del><ins>+ return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObject", "methodWithCallbackFunctionArg");
</ins><span class="cx"> auto callback = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</span><span class="cx"> impl.methodWithCallbackFunctionArg(WTFMove(callback));
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="lines">@@ -5133,7 +5138,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithNonCallbackArgAndCallbackFunctionArg");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithNonCallbackArgAndCallbackFunctionArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 2))
</span><span class="lines">@@ -5142,7 +5147,7 @@
</span><span class="cx"> if (UNLIKELY(state->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> if (UNLIKELY(!state->argument(1).isFunction()))
</span><del>- return throwArgumentMustBeFunctionError(*state, 1, "callback", "TestObj", "methodWithNonCallbackArgAndCallbackFunctionArg");
</del><ins>+ return throwArgumentMustBeFunctionError(*state, 1, "callback", "TestObject", "methodWithNonCallbackArgAndCallbackFunctionArg");
</ins><span class="cx"> auto callback = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(1)), castedThis->globalObject());
</span><span class="cx"> impl.methodWithNonCallbackArgAndCallbackFunctionArg(WTFMove(nonCallback), WTFMove(callback));
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="lines">@@ -5153,13 +5158,13 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithCallbackFunctionAndOptionalArg");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithCallbackFunctionAndOptionalArg");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> RefPtr<TestCallbackFunction> callback;
</span><span class="cx"> if (!state->argument(0).isUndefinedOrNull()) {
</span><span class="cx"> if (!state->uncheckedArgument(0).isFunction())
</span><del>- return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "methodWithCallbackFunctionAndOptionalArg");
</del><ins>+ return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObject", "methodWithCallbackFunctionAndOptionalArg");
</ins><span class="cx"> callback = JSTestCallbackFunction::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</span><span class="cx"> }
</span><span class="cx"> impl.methodWithCallbackFunctionAndOptionalArg(WTFMove(callback));
</span><span class="lines">@@ -5171,7 +5176,7 @@
</span><span class="cx"> RefPtr<TestCallback> callback;
</span><span class="cx"> if (!state->argument(0).isUndefinedOrNull()) {
</span><span class="cx"> if (!state->uncheckedArgument(0).isObject())
</span><del>- return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "staticMethodWithCallbackAndOptionalArg");
</del><ins>+ return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObject", "staticMethodWithCallbackAndOptionalArg");
</ins><span class="cx"> callback = createFunctionOnlyCallback<JSTestCallback>(state, jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject()), state->uncheckedArgument(0));
</span><span class="cx"> }
</span><span class="cx"> TestObj::staticMethodWithCallbackAndOptionalArg(WTFMove(callback));
</span><span class="lines">@@ -5183,7 +5188,7 @@
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="cx"> return throwVMError(state, createNotEnoughArgumentsError(state));
</span><span class="cx"> if (UNLIKELY(!state->argument(0).isObject()))
</span><del>- return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "staticMethodWithCallbackArg");
</del><ins>+ return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObject", "staticMethodWithCallbackArg");
</ins><span class="cx"> auto callback = createFunctionOnlyCallback<JSTestCallback>(state, jsCast<JSDOMGlobalObject*>(state->lexicalGlobalObject()), state->uncheckedArgument(0));
</span><span class="cx"> TestObj::staticMethodWithCallbackArg(WTFMove(callback));
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="lines">@@ -5195,7 +5200,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "conditionalMethod1");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "conditionalMethod1");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = jsStringWithCache(state, impl.conditionalMethod1());
</span><span class="lines">@@ -5210,7 +5215,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "conditionalMethod2");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "conditionalMethod2");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> impl.conditionalMethod2();
</span><span class="lines">@@ -5225,7 +5230,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "conditionalMethod3");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "conditionalMethod3");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> impl.conditionalMethod3();
</span><span class="lines">@@ -5239,7 +5244,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 2))
</span><span class="lines">@@ -5257,7 +5262,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5275,7 +5280,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5292,7 +5297,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5309,13 +5314,13 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="cx"> return throwVMError(state, createNotEnoughArgumentsError(state));
</span><span class="cx"> if (UNLIKELY(!state->argument(0).isObject()))
</span><del>- return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObj", "overloadedMethod");
</del><ins>+ return throwArgumentMustBeFunctionError(*state, 0, "callback", "TestObject", "overloadedMethod");
</ins><span class="cx"> auto callback = JSTestCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject());
</span><span class="cx"> impl.overloadedMethod(WTFMove(callback));
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="lines">@@ -5326,7 +5331,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5343,7 +5348,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5360,7 +5365,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5367,7 +5372,7 @@
</span><span class="cx"> return throwVMError(state, createNotEnoughArgumentsError(state));
</span><span class="cx"> auto objArg = JSTestObj::toWrapped(state->argument(0));
</span><span class="cx"> if (UNLIKELY(!objArg))
</span><del>- return throwArgumentTypeError(*state, 0, "objArg", "TestObj", "overloadedMethod", "TestObj");
</del><ins>+ return throwArgumentTypeError(*state, 0, "objArg", "TestObject", "overloadedMethod", "TestObj");
</ins><span class="cx"> impl.overloadedMethod(*objArg);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="lines">@@ -5377,7 +5382,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5394,7 +5399,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5411,7 +5416,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5428,7 +5433,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "overloadedMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "overloadedMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> Vector<Blob*> blobArgs;
</span><span class="lines">@@ -5437,7 +5442,7 @@
</span><span class="cx"> for (unsigned i = 0, count = state->argumentCount(); i < count; ++i) {
</span><span class="cx"> auto* item = JSBlob::toWrapped(state->uncheckedArgument(i));
</span><span class="cx"> if (!item)
</span><del>- return throwArgumentTypeError(*state, i, "blobArgs", "TestObj", "overloadedMethod", "Blob");
</del><ins>+ return throwArgumentTypeError(*state, i, "blobArgs", "TestObject", "overloadedMethod", "Blob");
</ins><span class="cx"> blobArgs.uncheckedAppend(item);
</span><span class="cx"> }
</span><span class="cx"> impl.overloadedMethod(WTFMove(blobArgs));
</span><span class="lines">@@ -5483,7 +5488,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "overloadedMethodWithOptionalParameter");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "overloadedMethodWithOptionalParameter");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5499,7 +5504,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "overloadedMethodWithOptionalParameter");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "overloadedMethodWithOptionalParameter");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5600,7 +5605,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "classMethodWithClamp");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "classMethodWithClamp");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 2))
</span><span class="lines">@@ -5620,7 +5625,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "classMethodWithEnforceRange");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "classMethodWithEnforceRange");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 2))
</span><span class="lines">@@ -5640,7 +5645,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithUnsignedLongSequence");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithUnsignedLongSequence");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5657,7 +5662,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "stringArrayFunction");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "stringArrayFunction");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5677,7 +5682,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "domStringListFunction");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "domStringListFunction");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5687,7 +5692,7 @@
</span><span class="cx"> if (UNLIKELY(state->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> if (UNLIKELY(!values))
</span><del>- return throwArgumentTypeError(*state, 0, "values", "TestObj", "domStringListFunction", "DOMStringList");
</del><ins>+ return throwArgumentTypeError(*state, 0, "values", "TestObject", "domStringListFunction", "DOMStringList");
</ins><span class="cx"> JSValue result = toJS(state, castedThis->globalObject(), impl.domStringListFunction(*values, ec));
</span><span class="cx">
</span><span class="cx"> setDOMException(state, ec);
</span><span class="lines">@@ -5699,7 +5704,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithAndWithoutNullableSequence");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithAndWithoutNullableSequence");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 2))
</span><span class="lines">@@ -5719,7 +5724,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithAndWithoutNullableSequence2");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithAndWithoutNullableSequence2");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 2))
</span><span class="lines">@@ -5739,7 +5744,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "getElementById");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "getElementById");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5756,7 +5761,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "getSVGDocument");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "getSVGDocument");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="lines">@@ -5773,7 +5778,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "convert1");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "convert1");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5780,7 +5785,7 @@
</span><span class="cx"> return throwVMError(state, createNotEnoughArgumentsError(state));
</span><span class="cx"> auto value = JSTestNode::toWrapped(state->argument(0));
</span><span class="cx"> if (UNLIKELY(!value))
</span><del>- return throwArgumentTypeError(*state, 0, "value", "TestObj", "convert1", "TestNode");
</del><ins>+ return throwArgumentTypeError(*state, 0, "value", "TestObject", "convert1", "TestNode");
</ins><span class="cx"> impl.convert1(*value);
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="lines">@@ -5790,7 +5795,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "convert2");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "convert2");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5805,7 +5810,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "convert3");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "convert3");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5822,7 +5827,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "convert4");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "convert4");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5839,7 +5844,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "mutablePointFunction");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "mutablePointFunction");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = toJS(state, castedThis->globalObject(), SVGPropertyTearOff<SVGPoint>::create(impl.mutablePointFunction()));
</span><span class="lines">@@ -5851,7 +5856,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "immutablePointFunction");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "immutablePointFunction");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> JSValue result = toJS(state, castedThis->globalObject(), SVGPropertyTearOff<SVGPoint>::create(impl.immutablePointFunction()));
</span><span class="lines">@@ -5863,7 +5868,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "orange");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "orange");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> impl.banana();
</span><span class="lines">@@ -5875,7 +5880,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "strictFunction");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "strictFunction");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 3))
</span><span class="lines">@@ -5901,7 +5906,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "strictFunctionWithSequence");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "strictFunctionWithSequence");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 2))
</span><span class="lines">@@ -5911,7 +5916,7 @@
</span><span class="cx"> if (!state->argument(0).isUndefinedOrNull()) {
</span><span class="cx"> objArg = JSTestObj::toWrapped(state->uncheckedArgument(0));
</span><span class="cx"> if (UNLIKELY(!objArg))
</span><del>- return throwArgumentTypeError(*state, 0, "objArg", "TestObj", "strictFunctionWithSequence", "TestObj");
</del><ins>+ return throwArgumentTypeError(*state, 0, "objArg", "TestObject", "strictFunctionWithSequence", "TestObj");
</ins><span class="cx"> }
</span><span class="cx"> auto a = toNativeArray<uint32_t>(*state, state->argument(1));
</span><span class="cx"> if (UNLIKELY(state->hadException()))
</span><span class="lines">@@ -5927,7 +5932,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "strictFunctionWithArray");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "strictFunctionWithArray");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 2))
</span><span class="lines">@@ -5935,7 +5940,7 @@
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="cx"> auto objArg = JSTestObj::toWrapped(state->argument(0));
</span><span class="cx"> if (UNLIKELY(!objArg))
</span><del>- return throwArgumentTypeError(*state, 0, "objArg", "TestObj", "strictFunctionWithArray", "TestObj");
</del><ins>+ return throwArgumentTypeError(*state, 0, "objArg", "TestObject", "strictFunctionWithArray", "TestObj");
</ins><span class="cx"> auto array = toNativeArray<int32_t>(*state, state->argument(1));
</span><span class="cx"> if (UNLIKELY(state->hadException()))
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="lines">@@ -5950,7 +5955,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "variadicStringMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "variadicStringMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5970,7 +5975,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "variadicDoubleMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "variadicDoubleMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5990,7 +5995,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "variadicNodeMethod");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "variadicNodeMethod");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -5997,7 +6002,7 @@
</span><span class="cx"> return throwVMError(state, createNotEnoughArgumentsError(state));
</span><span class="cx"> auto head = JSNode::toWrapped(state->argument(0));
</span><span class="cx"> if (UNLIKELY(!head))
</span><del>- return throwArgumentTypeError(*state, 0, "head", "TestObj", "variadicNodeMethod", "Node");
</del><ins>+ return throwArgumentTypeError(*state, 0, "head", "TestObject", "variadicNodeMethod", "Node");
</ins><span class="cx"> Vector<Node*> tail;
</span><span class="cx"> ASSERT(1 <= state->argumentCount());
</span><span class="cx"> tail.reserveInitialCapacity(state->argumentCount() - 1);
</span><span class="lines">@@ -6004,7 +6009,7 @@
</span><span class="cx"> for (unsigned i = 1, count = state->argumentCount(); i < count; ++i) {
</span><span class="cx"> auto* item = JSNode::toWrapped(state->uncheckedArgument(i));
</span><span class="cx"> if (!item)
</span><del>- return throwArgumentTypeError(*state, i, "tail", "TestObj", "variadicNodeMethod", "Node");
</del><ins>+ return throwArgumentTypeError(*state, i, "tail", "TestObject", "variadicNodeMethod", "Node");
</ins><span class="cx"> tail.uncheckedAppend(item);
</span><span class="cx"> }
</span><span class="cx"> impl.variadicNodeMethod(*head, WTFMove(tail));
</span><span class="lines">@@ -6016,7 +6021,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "any");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "any");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 2))
</span><span class="lines">@@ -6042,7 +6047,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "testPromiseFunction");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "testPromiseFunction");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> impl.testPromiseFunction(DeferredWrapper(state, castedThis->globalObject(), promiseDeferred));
</span><span class="lines">@@ -6060,7 +6065,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "testPromiseFunctionWithFloatArgument");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "testPromiseFunctionWithFloatArgument");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -6083,7 +6088,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "testPromiseFunctionWithException");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "testPromiseFunctionWithException");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> ExceptionCode ec = 0;
</span><span class="lines">@@ -6103,7 +6108,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "testPromiseFunctionWithOptionalIntArgument");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "testPromiseFunctionWithOptionalIntArgument");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> auto a = state->argument(0).isUndefined() ? Optional<int32_t>() : convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion);
</span><span class="lines">@@ -6124,7 +6129,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "testPromiseOverloadedFunction");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "testPromiseOverloadedFunction");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -6147,7 +6152,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "testPromiseOverloadedFunction");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "testPromiseOverloadedFunction");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span><span class="lines">@@ -6154,7 +6159,7 @@
</span><span class="cx"> return throwVMError(state, createNotEnoughArgumentsError(state));
</span><span class="cx"> auto request = JSFetchRequest::toWrapped(state->argument(0));
</span><span class="cx"> if (UNLIKELY(!request))
</span><del>- return throwArgumentTypeError(*state, 0, "request", "TestObj", "testPromiseOverloadedFunction", "FetchRequest");
</del><ins>+ return throwArgumentTypeError(*state, 0, "request", "TestObject", "testPromiseOverloadedFunction", "FetchRequest");
</ins><span class="cx"> impl.testPromiseOverloadedFunction(*request, DeferredWrapper(state, castedThis->globalObject(), promiseDeferred));
</span><span class="cx"> return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="lines">@@ -6206,7 +6211,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "methodWithNeedsLifecycleProcessingStack");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "methodWithNeedsLifecycleProcessingStack");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> impl.methodWithNeedsLifecycleProcessingStack();
</span><span class="lines">@@ -6218,7 +6223,7 @@
</span><span class="cx"> JSValue thisValue = state->thisValue();
</span><span class="cx"> auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
</span><span class="cx"> if (UNLIKELY(!castedThis))
</span><del>- return throwThisTypeError(*state, "TestObj", "attachShadowRoot");
</del><ins>+ return throwThisTypeError(*state, "TestObject", "attachShadowRoot");
</ins><span class="cx"> ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
</span><span class="cx"> auto& impl = castedThis->wrapped();
</span><span class="cx"> if (UNLIKELY(state->argumentCount() < 1))
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestTestObjidl"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/TestObj.idl (203857 => 203858)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/TestObj.idl        2016-07-29 05:22:14 UTC (rev 203857)
+++ trunk/Source/WebCore/bindings/scripts/test/TestObj.idl        2016-07-29 06:45:21 UTC (rev 203858)
</span><span class="lines">@@ -44,6 +44,7 @@
</span><span class="cx"> enum TestConfidence { "high", "kinda-low" };
</span><span class="cx">
</span><span class="cx"> [
</span><ins>+ ConstructorCallWith=Document,
</ins><span class="cx"> Constructor(TestCallback testCallback, TestCallbackFunction testCallbackFunction),
</span><span class="cx"> InterfaceName=TestObject
</span><span class="cx"> ] interface TestObj {
</span></span></pre>
</div>
</div>
</body>
</html>