<!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>[206360] trunk/Source/WebCore</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/206360">206360</a></dd>
<dt>Author</dt> <dd>utatane.tea@gmail.com</dd>
<dt>Date</dt> <dd>2016-09-25 00:01:35 -0700 (Sun, 25 Sep 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Unreviewed, update results of DOM binding tests after <a href="http://trac.webkit.org/projects/webkit/changeset/206354">r206354</a>.
https://bugs.webkit.org/show_bug.cgi?id=162503

Update results of DOM binding tests. After <a href="http://trac.webkit.org/projects/webkit/changeset/206354">r206354</a>, setDOMException takes
ThrowScope as its second argument.

* bindings/scripts/test/JS/JSTestInterface.cpp:
(WebCore::JSTestInterfaceConstructor::construct):
(WebCore::jsTestInterfacePrototypeFunctionImplementsMethod2):
(WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod2):
* bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
(WebCore::JSTestNamedConstructorNamedConstructor::construct):
* bindings/scripts/test/JS/JSTestNondeterministic.cpp:
(WebCore::jsTestNondeterministicNondeterministicGetterExceptionAttr):
(WebCore::setJSTestNondeterministicNondeterministicSetterExceptionAttr):
* bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::jsTestObjAttrWithGetterException):
(WebCore::jsTestObjAttrWithGetterExceptionWithMessage):
(WebCore::jsTestObjStringAttrWithGetterException):
(WebCore::jsTestObjWithScriptStateAttributeRaises):
(WebCore::jsTestObjWithScriptExecutionContextAttributeRaises):
(WebCore::jsTestObjWithScriptExecutionContextAndScriptStateAttributeRaises):
(WebCore::jsTestObjNullableStringValue):
(WebCore::setJSTestObjAttrWithSetterException):
(WebCore::setJSTestObjAttrWithSetterExceptionWithMessage):
(WebCore::setJSTestObjStringAttrWithSetterException):
(WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
(WebCore::jsTestObjPrototypeFunctionMethodWithException):
(WebCore::jsTestObjPrototypeFunctionMethodWithExceptionWithMessage):
(WebCore::jsTestObjPrototypeFunctionWithScriptStateVoidException):
(WebCore::jsTestObjPrototypeFunctionWithScriptStateObjException):
(WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateObjException):
(WebCore::jsTestObjPrototypeFunctionStringArrayFunction):
(WebCore::jsTestObjPrototypeFunctionDomStringListFunction):
(WebCore::jsTestObjPrototypeFunctionGetSVGDocument):
(WebCore::jsTestObjPrototypeFunctionTestPromiseFunctionWithExceptionPromise):
(WebCore::jsTestObjConstructorFunctionTestStaticPromiseFunctionWithExceptionPromise):
* bindings/scripts/test/JS/JSTestTypedefs.cpp:
(WebCore::jsTestTypedefsAttrWithGetterException):
(WebCore::jsTestTypedefsStringAttrWithGetterException):
(WebCore::setJSTestTypedefsAttrWithSetterException):
(WebCore::setJSTestTypedefsStringAttrWithSetterException):
(WebCore::jsTestTypedefsPrototypeFunctionStringSequenceFunction):
(WebCore::jsTestTypedefsPrototypeFunctionStringSequenceFunction2):
(WebCore::jsTestTypedefsPrototypeFunctionMethodWithException):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestInterfacecpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestNamedConstructorcpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestNondeterministiccpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestObjcpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp</a></li>
<li><a href="#trunkSourceWebCorebindingsscriptstestJSJSTestTypedefscpp">trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (206359 => 206360)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-09-25 06:37:04 UTC (rev 206359)
+++ trunk/Source/WebCore/ChangeLog        2016-09-25 07:01:35 UTC (rev 206360)
</span><span class="lines">@@ -1,3 +1,51 @@
</span><ins>+2016-09-24  Yusuke Suzuki  &lt;utatane.tea@gmail.com&gt;
+
+        Unreviewed, update results of DOM binding tests after r206354.
+        https://bugs.webkit.org/show_bug.cgi?id=162503
+
+        Update results of DOM binding tests. After r206354, setDOMException takes
+        ThrowScope as its second argument.
+
+        * bindings/scripts/test/JS/JSTestInterface.cpp:
+        (WebCore::JSTestInterfaceConstructor::construct):
+        (WebCore::jsTestInterfacePrototypeFunctionImplementsMethod2):
+        (WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod2):
+        * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
+        (WebCore::JSTestNamedConstructorNamedConstructor::construct):
+        * bindings/scripts/test/JS/JSTestNondeterministic.cpp:
+        (WebCore::jsTestNondeterministicNondeterministicGetterExceptionAttr):
+        (WebCore::setJSTestNondeterministicNondeterministicSetterExceptionAttr):
+        * bindings/scripts/test/JS/JSTestObj.cpp:
+        (WebCore::jsTestObjAttrWithGetterException):
+        (WebCore::jsTestObjAttrWithGetterExceptionWithMessage):
+        (WebCore::jsTestObjStringAttrWithGetterException):
+        (WebCore::jsTestObjWithScriptStateAttributeRaises):
+        (WebCore::jsTestObjWithScriptExecutionContextAttributeRaises):
+        (WebCore::jsTestObjWithScriptExecutionContextAndScriptStateAttributeRaises):
+        (WebCore::jsTestObjNullableStringValue):
+        (WebCore::setJSTestObjAttrWithSetterException):
+        (WebCore::setJSTestObjAttrWithSetterExceptionWithMessage):
+        (WebCore::setJSTestObjStringAttrWithSetterException):
+        (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
+        (WebCore::jsTestObjPrototypeFunctionMethodWithException):
+        (WebCore::jsTestObjPrototypeFunctionMethodWithExceptionWithMessage):
+        (WebCore::jsTestObjPrototypeFunctionWithScriptStateVoidException):
+        (WebCore::jsTestObjPrototypeFunctionWithScriptStateObjException):
+        (WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateObjException):
+        (WebCore::jsTestObjPrototypeFunctionStringArrayFunction):
+        (WebCore::jsTestObjPrototypeFunctionDomStringListFunction):
+        (WebCore::jsTestObjPrototypeFunctionGetSVGDocument):
+        (WebCore::jsTestObjPrototypeFunctionTestPromiseFunctionWithExceptionPromise):
+        (WebCore::jsTestObjConstructorFunctionTestStaticPromiseFunctionWithExceptionPromise):
+        * bindings/scripts/test/JS/JSTestTypedefs.cpp:
+        (WebCore::jsTestTypedefsAttrWithGetterException):
+        (WebCore::jsTestTypedefsStringAttrWithGetterException):
+        (WebCore::setJSTestTypedefsAttrWithSetterException):
+        (WebCore::setJSTestTypedefsStringAttrWithSetterException):
+        (WebCore::jsTestTypedefsPrototypeFunctionStringSequenceFunction):
+        (WebCore::jsTestTypedefsPrototypeFunctionStringSequenceFunction2):
+        (WebCore::jsTestTypedefsPrototypeFunctionMethodWithException):
+
</ins><span class="cx"> 2016-09-24  Chris Dumez  &lt;cdumez@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         REGRESSION (r206221): [USER] com.apple.WebKit.WebContent.Development at com.apple.JavaScriptCore: vmEntryToJavaScript + 299
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestInterfacecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp (206359 => 206360)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp        2016-09-25 06:37:04 UTC (rev 206359)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp        2016-09-25 07:01:35 UTC (rev 206360)
</span><span class="lines">@@ -241,7 +241,7 @@
</span><span class="cx">         return throwConstructorScriptExecutionContextUnavailableError(*state, throwScope, &quot;TestInterface&quot;);
</span><span class="cx">     auto object = TestInterface::create(*context, WTFMove(str1), WTFMove(str2), ec);
</span><span class="cx">     if (UNLIKELY(ec)) {
</span><del>-        setDOMException(state, ec);
</del><ins>+        setDOMException(state, throwScope, ec);
</ins><span class="cx">         return JSValue::encode(JSValue());
</span><span class="cx">     }
</span><span class="cx">     return JSValue::encode(toJSNewlyCreated(state, castedThis-&gt;globalObject(), WTFMove(object)));
</span><span class="lines">@@ -867,7 +867,7 @@
</span><span class="cx">         return throwArgumentTypeError(*state, throwScope, 1, &quot;objArg&quot;, &quot;TestInterface&quot;, &quot;implementsMethod2&quot;, &quot;TestObj&quot;);
</span><span class="cx">     JSValue result = toJS(state, castedThis-&gt;globalObject(), impl.implementsMethod2(*context, WTFMove(strArg), *objArg, ec));
</span><span class="cx"> 
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -945,7 +945,7 @@
</span><span class="cx">         return throwArgumentTypeError(*state, throwScope, 1, &quot;objArg&quot;, &quot;TestInterface&quot;, &quot;supplementalMethod2&quot;, &quot;TestObj&quot;);
</span><span class="cx">     JSValue result = toJS(state, castedThis-&gt;globalObject(), WebCore::TestSupplemental::supplementalMethod2(impl, *context, WTFMove(strArg), *objArg, ec));
</span><span class="cx"> 
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestNamedConstructorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp (206359 => 206360)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp        2016-09-25 06:37:04 UTC (rev 206359)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp        2016-09-25 07:01:35 UTC (rev 206360)
</span><span class="lines">@@ -101,7 +101,7 @@
</span><span class="cx">         return JSValue::encode(jsUndefined());
</span><span class="cx">     auto object = TestNamedConstructor::createForJSConstructor(*castedThis-&gt;document(), WTFMove(str1), WTFMove(str2), WTFMove(str3), ec);
</span><span class="cx">     if (UNLIKELY(ec)) {
</span><del>-        setDOMException(state, ec);
</del><ins>+        setDOMException(state, throwScope, ec);
</ins><span class="cx">         return JSValue::encode(JSValue());
</span><span class="cx">     }
</span><span class="cx">     return JSValue::encode(toJSNewlyCreated(state, castedThis-&gt;globalObject(), WTFMove(object)));
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestNondeterministiccpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.cpp (206359 => 206360)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.cpp        2016-09-25 06:37:04 UTC (rev 206359)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.cpp        2016-09-25 07:01:35 UTC (rev 206360)
</span><span class="lines">@@ -275,7 +275,7 @@
</span><span class="cx">         String memoizedResult = castedThis-&gt;wrapped().nondeterministicGetterExceptionAttr(ec);
</span><span class="cx">         cursor.appendInput&lt;MemoizedDOMResult&lt;String&gt;&gt;(bindingName.get().string(), memoizedResult, ec);
</span><span class="cx">         JSValue result = jsStringWithCache(state, memoizedResult);
</span><del>-        setDOMException(state, ec);
</del><ins>+        setDOMException(state, throwScope, ec);
</ins><span class="cx">         return JSValue::encode(result);
</span><span class="cx">     }
</span><span class="cx"> 
</span><span class="lines">@@ -284,7 +284,7 @@
</span><span class="cx">         MemoizedDOMResultBase* input = cursor.fetchInput&lt;MemoizedDOMResultBase&gt;();
</span><span class="cx">         if (input &amp;&amp; input-&gt;convertTo&lt;String&gt;(memoizedResult)) {
</span><span class="cx">             JSValue result = jsStringWithCache(state, memoizedResult);
</span><del>-            setDOMException(state, input-&gt;exceptionCode());
</del><ins>+            setDOMException(state, throwScope, input-&gt;exceptionCode());
</ins><span class="cx">             return JSValue::encode(result);
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="lines">@@ -291,7 +291,7 @@
</span><span class="cx"> #endif
</span><span class="cx">     auto&amp; impl = castedThis-&gt;wrapped();
</span><span class="cx">     JSValue result = jsStringWithCache(state, impl.nondeterministicGetterExceptionAttr(ec));
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -434,7 +434,7 @@
</span><span class="cx">     if (UNLIKELY(throwScope.exception()))
</span><span class="cx">         return false;
</span><span class="cx">     impl.setNondeterministicSetterExceptionAttr(WTFMove(nativeValue), ec);
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return true;
</span><span class="cx"> }
</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 (206359 => 206360)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp        2016-09-25 06:37:04 UTC (rev 206359)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp        2016-09-25 07:01:35 UTC (rev 206360)
</span><span class="lines">@@ -2227,7 +2227,7 @@
</span><span class="cx">     ExceptionCode ec = 0;
</span><span class="cx">     auto&amp; impl = castedThis-&gt;wrapped();
</span><span class="cx">     JSValue result = jsNumber(impl.attrWithGetterException(ec));
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -2246,7 +2246,7 @@
</span><span class="cx">     ExceptionCodeWithMessage ec;
</span><span class="cx">     auto&amp; impl = castedThis-&gt;wrapped();
</span><span class="cx">     JSValue result = jsNumber(impl.attrWithGetterExceptionWithMessage(ec));
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -2299,7 +2299,7 @@
</span><span class="cx">     ExceptionCode ec = 0;
</span><span class="cx">     auto&amp; impl = castedThis-&gt;wrapped();
</span><span class="cx">     JSValue result = jsStringWithCache(state, impl.stringAttrWithGetterException(ec));
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -2436,7 +2436,7 @@
</span><span class="cx">     ExceptionCode ec = 0;
</span><span class="cx">     auto&amp; impl = castedThis-&gt;wrapped();
</span><span class="cx">     JSValue result = toJS(state, castedThis-&gt;globalObject(), impl.withScriptStateAttributeRaises(*state, ec));
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -2458,7 +2458,7 @@
</span><span class="cx">         return JSValue::encode(jsUndefined());
</span><span class="cx">     auto&amp; impl = castedThis-&gt;wrapped();
</span><span class="cx">     JSValue result = toJS(state, castedThis-&gt;globalObject(), impl.withScriptExecutionContextAttributeRaises(*context, ec));
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -2500,7 +2500,7 @@
</span><span class="cx">         return JSValue::encode(jsUndefined());
</span><span class="cx">     auto&amp; impl = castedThis-&gt;wrapped();
</span><span class="cx">     JSValue result = toJS(state, castedThis-&gt;globalObject(), impl.withScriptExecutionContextAndScriptStateAttributeRaises(*state, *context, ec));
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -2975,7 +2975,7 @@
</span><span class="cx">     ExceptionCode ec = 0;
</span><span class="cx">     auto&amp; impl = castedThis-&gt;wrapped();
</span><span class="cx">     JSValue result = toNullableJSNumber(impl.nullableStringValue(ec));
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -3857,7 +3857,7 @@
</span><span class="cx">     if (UNLIKELY(throwScope.exception()))
</span><span class="cx">         return false;
</span><span class="cx">     impl.setAttrWithSetterException(WTFMove(nativeValue), ec);
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -3879,7 +3879,7 @@
</span><span class="cx">     if (UNLIKELY(throwScope.exception()))
</span><span class="cx">         return false;
</span><span class="cx">     impl.setAttrWithSetterExceptionWithMessage(WTFMove(nativeValue), ec);
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -3921,7 +3921,7 @@
</span><span class="cx">     if (UNLIKELY(throwScope.exception()))
</span><span class="cx">         return false;
</span><span class="cx">     impl.setStringAttrWithSetterException(WTFMove(nativeValue), ec);
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -5078,7 +5078,7 @@
</span><span class="cx">         return throwArgumentTypeError(*state, throwScope, 1, &quot;objArg&quot;, &quot;TestObject&quot;, &quot;methodThatRequiresAllArgsAndThrows&quot;, &quot;TestObj&quot;);
</span><span class="cx">     JSValue result = toJS(state, castedThis-&gt;globalObject(), impl.methodThatRequiresAllArgsAndThrows(WTFMove(strArg), *objArg, ec));
</span><span class="cx"> 
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -5194,7 +5194,7 @@
</span><span class="cx">     auto&amp; impl = castedThis-&gt;wrapped();
</span><span class="cx">     ExceptionCode ec = 0;
</span><span class="cx">     impl.methodWithException(ec);
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -5211,7 +5211,7 @@
</span><span class="cx">     auto&amp; impl = castedThis-&gt;wrapped();
</span><span class="cx">     ExceptionCodeWithMessage ec;
</span><span class="cx">     impl.methodWithExceptionWithMessage(ec);
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -5378,7 +5378,7 @@
</span><span class="cx">     auto&amp; impl = castedThis-&gt;wrapped();
</span><span class="cx">     ExceptionCode ec = 0;
</span><span class="cx">     impl.withScriptStateVoidException(*state, ec);
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -5396,7 +5396,7 @@
</span><span class="cx">     ExceptionCode ec = 0;
</span><span class="cx">     JSValue result = toJS(state, castedThis-&gt;globalObject(), impl.withScriptStateObjException(*state, ec));
</span><span class="cx"> 
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     if (UNLIKELY(throwScope.exception()))
</span><span class="cx">         return JSValue::encode(jsUndefined());
</span><span class="cx">     return JSValue::encode(result);
</span><span class="lines">@@ -5455,7 +5455,7 @@
</span><span class="cx">         return JSValue::encode(jsUndefined());
</span><span class="cx">     JSValue result = toJS(state, castedThis-&gt;globalObject(), impl.withScriptExecutionContextAndScriptStateObjException(*state, *context, ec));
</span><span class="cx"> 
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     if (UNLIKELY(throwScope.exception()))
</span><span class="cx">         return JSValue::encode(jsUndefined());
</span><span class="cx">     return JSValue::encode(result);
</span><span class="lines">@@ -6850,7 +6850,7 @@
</span><span class="cx">         return JSValue::encode(jsUndefined());
</span><span class="cx">     JSValue result = jsArray(state, castedThis-&gt;globalObject(), impl.stringArrayFunction(WTFMove(values), ec));
</span><span class="cx"> 
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -6873,7 +6873,7 @@
</span><span class="cx">         return throwArgumentTypeError(*state, throwScope, 0, &quot;values&quot;, &quot;TestObject&quot;, &quot;domStringListFunction&quot;, &quot;DOMStringList&quot;);
</span><span class="cx">     JSValue result = toJS(state, castedThis-&gt;globalObject(), impl.domStringListFunction(*values, ec));
</span><span class="cx"> 
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -6936,7 +6936,7 @@
</span><span class="cx">         return JSValue::encode(jsNull());
</span><span class="cx">     JSValue result = toJS(state, castedThis-&gt;globalObject(), impl.getSVGDocument(ec));
</span><span class="cx"> 
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -7232,7 +7232,7 @@
</span><span class="cx">     auto&amp; impl = castedThis-&gt;wrapped();
</span><span class="cx">     ExceptionCode ec = 0;
</span><span class="cx">     impl.testPromiseFunctionWithException(WTFMove(promise), ec);
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -7367,7 +7367,7 @@
</span><span class="cx">     UNUSED_PARAM(throwScope);
</span><span class="cx">     ExceptionCode ec = 0;
</span><span class="cx">     TestObj::testStaticPromiseFunctionWithException(WTFMove(promise), ec);
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCorebindingsscriptstestJSJSTestTypedefscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp (206359 => 206360)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp        2016-09-25 06:37:04 UTC (rev 206359)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp        2016-09-25 07:01:35 UTC (rev 206360)
</span><span class="lines">@@ -274,7 +274,7 @@
</span><span class="cx">     ExceptionCode ec = 0;
</span><span class="cx">     auto&amp; impl = castedThis-&gt;wrapped();
</span><span class="cx">     JSValue result = jsNumber(impl.attrWithGetterException(ec));
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -310,7 +310,7 @@
</span><span class="cx">     ExceptionCode ec = 0;
</span><span class="cx">     auto&amp; impl = castedThis-&gt;wrapped();
</span><span class="cx">     JSValue result = jsStringWithCache(state, impl.stringAttrWithGetterException(ec));
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -433,7 +433,7 @@
</span><span class="cx">     if (UNLIKELY(throwScope.exception()))
</span><span class="cx">         return false;
</span><span class="cx">     impl.setAttrWithSetterException(WTFMove(nativeValue), ec);
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -475,7 +475,7 @@
</span><span class="cx">     if (UNLIKELY(throwScope.exception()))
</span><span class="cx">         return false;
</span><span class="cx">     impl.setStringAttrWithSetterException(WTFMove(nativeValue), ec);
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -632,7 +632,7 @@
</span><span class="cx">         return JSValue::encode(jsUndefined());
</span><span class="cx">     JSValue result = jsArray(state, castedThis-&gt;globalObject(), impl.stringSequenceFunction(WTFMove(values), ec));
</span><span class="cx"> 
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -655,7 +655,7 @@
</span><span class="cx">         return JSValue::encode(jsUndefined());
</span><span class="cx">     JSValue result = jsArray(state, castedThis-&gt;globalObject(), impl.stringSequenceFunction2(WTFMove(values), ec));
</span><span class="cx"> 
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(result);
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -692,7 +692,7 @@
</span><span class="cx">     auto&amp; impl = castedThis-&gt;wrapped();
</span><span class="cx">     ExceptionCode ec = 0;
</span><span class="cx">     impl.methodWithException(ec);
</span><del>-    setDOMException(state, ec);
</del><ins>+    setDOMException(state, throwScope, ec);
</ins><span class="cx">     return JSValue::encode(jsUndefined());
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>