<!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>[207945] branches/safari-602-branch</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/207945">207945</a></dd>
<dt>Author</dt> <dd>matthew_hanson@apple.com</dd>
<dt>Date</dt> <dd>2016-10-27 00:15:11 -0700 (Thu, 27 Oct 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Merge <a href="http://trac.webkit.org/projects/webkit/changeset/207229">r207229</a>. rdar://problem/28718809</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#branchessafari602branchLayoutTestsChangeLog">branches/safari-602-branch/LayoutTests/ChangeLog</a></li>
<li><a href="#branchessafari602branchLayoutTestsinspectormodelremoteobjectexpectedtxt">branches/safari-602-branch/LayoutTests/inspector/model/remote-object-expected.txt</a></li>
<li><a href="#branchessafari602branchLayoutTestsinspectormodelremoteobjecthtml">branches/safari-602-branch/LayoutTests/inspector/model/remote-object.html</a></li>
<li><a href="#branchessafari602branchLayoutTestsplatformmacinspectormodelremoteobjectexpectedtxt">branches/safari-602-branch/LayoutTests/platform/mac/inspector/model/remote-object-expected.txt</a></li>
<li><a href="#branchessafari602branchSourceJavaScriptCoreChangeLog">branches/safari-602-branch/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#branchessafari602branchSourceJavaScriptCorebindingsScriptValuecpp">branches/safari-602-branch/Source/JavaScriptCore/bindings/ScriptValue.cpp</a></li>
<li><a href="#branchessafari602branchSourceJavaScriptCoreinspectorInjectedScriptSourcejs">branches/safari-602-branch/Source/JavaScriptCore/inspector/InjectedScriptSource.js</a></li>
<li><a href="#branchessafari602branchSourceJavaScriptCoreinspectorJSInjectedScriptHostcpp">branches/safari-602-branch/Source/JavaScriptCore/inspector/JSInjectedScriptHost.cpp</a></li>
<li><a href="#branchessafari602branchSourceJavaScriptCoreinspectorJSInjectedScriptHosth">branches/safari-602-branch/Source/JavaScriptCore/inspector/JSInjectedScriptHost.h</a></li>
<li><a href="#branchessafari602branchSourceJavaScriptCoreinspectorJSInjectedScriptHostPrototypecpp">branches/safari-602-branch/Source/JavaScriptCore/inspector/JSInjectedScriptHostPrototype.cpp</a></li>
<li><a href="#branchessafari602branchSourceJavaScriptCoreinspectorScriptArgumentscpp">branches/safari-602-branch/Source/JavaScriptCore/inspector/ScriptArguments.cpp</a></li>
<li><a href="#branchessafari602branchSourceJavaScriptCoreinspectorprotocolRuntimejson">branches/safari-602-branch/Source/JavaScriptCore/inspector/protocol/Runtime.json</a></li>
<li><a href="#branchessafari602branchSourceWebInspectorUIChangeLog">branches/safari-602-branch/Source/WebInspectorUI/ChangeLog</a></li>
<li><a href="#branchessafari602branchSourceWebInspectorUIUserInterfaceViewsConsoleMessageViewjs">branches/safari-602-branch/Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.js</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#branchessafari602branchLayoutTestsinspectorconsoleconsolelogproxyexpectedtxt">branches/safari-602-branch/LayoutTests/inspector/console/console-log-proxy-expected.txt</a></li>
<li><a href="#branchessafari602branchLayoutTestsinspectorconsoleconsolelogproxyhtml">branches/safari-602-branch/LayoutTests/inspector/console/console-log-proxy.html</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="branchessafari602branchLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/LayoutTests/ChangeLog (207944 => 207945)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/LayoutTests/ChangeLog        2016-10-27 07:12:45 UTC (rev 207944)
+++ branches/safari-602-branch/LayoutTests/ChangeLog        2016-10-27 07:15:11 UTC (rev 207945)
</span><span class="lines">@@ -1,3 +1,26 @@
</span><ins>+2016-10-24  Matthew Hanson  &lt;matthew_hanson@apple.com&gt;
+
+        Merge r207229. rdar://problem/28718809
+
+    2016-10-12  Joseph Pecoraro  &lt;pecoraro@apple.com&gt;
+
+            Web Inspector: Improve support for logging Proxy objects in console
+            https://bugs.webkit.org/show_bug.cgi?id=163323
+            &lt;rdar://problem/28432553&gt;
+
+            Reviewed by Timothy Hatcher.
+
+            * inspector/console/console-log-proxy-expected.txt: Added.
+            * inspector/console/console-log-proxy.html: Added.
+            Add a test specific to console logs of Proxy objects to ensure the get
+            trap is not used in different cases.
+
+            * inspector/model/remote-object-expected.txt:
+            * inspector/model/remote-object.html:
+            * platform/mac/inspector/model/remote-object-expected.txt:
+            Update results for Proxy objects and include a test for a multi-level
+            Proxy object, which should preview the target.
+
</ins><span class="cx"> 2016-10-26  Matthew Hanson  &lt;matthew_hanson@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Merge r207547. rdar://problem/28810755
</span></span></pre></div>
<a id="branchessafari602branchLayoutTestsinspectorconsoleconsolelogproxyexpectedtxt"></a>
<div class="addfile"><h4>Added: branches/safari-602-branch/LayoutTests/inspector/console/console-log-proxy-expected.txt (0 => 207945)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/LayoutTests/inspector/console/console-log-proxy-expected.txt                                (rev 0)
+++ branches/safari-602-branch/LayoutTests/inspector/console/console-log-proxy-expected.txt        2016-10-27 07:15:11 UTC (rev 207945)
</span><span class="lines">@@ -0,0 +1,14 @@
</span><ins>+CONSOLE MESSAGE: line 16: [object Proxy]
+CONSOLE MESSAGE: line 30: 0
+CONSOLE MESSAGE: line 31: [object Proxy]
+CONSOLE MESSAGE: line 32: 1
+Tests for the console.log with Proxy objects.
+
+
+== Running test suite: console.log.proxy
+-- Running test case: BasicProxyLog
+PASS: Logging Proxy objects should not have triggered get trap.
+
+-- Running test case: AvoidTrapWhenCheckingConsoleRepeat
+PASS: Logging Proxy objects and primitives should not have triggered get trap.
+
</ins></span></pre></div>
<a id="branchessafari602branchLayoutTestsinspectorconsoleconsolelogproxyhtml"></a>
<div class="addfile"><h4>Added: branches/safari-602-branch/LayoutTests/inspector/console/console-log-proxy.html (0 => 207945)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/LayoutTests/inspector/console/console-log-proxy.html                                (rev 0)
+++ branches/safari-602-branch/LayoutTests/inspector/console/console-log-proxy.html        2016-10-27 07:15:11 UTC (rev 207945)
</span><span class="lines">@@ -0,0 +1,74 @@
</span><ins>+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+&lt;head&gt;
+&lt;script src=&quot;../../http/tests/inspector/resources/inspector-test.js&quot;&gt;&lt;/script&gt;
+&lt;script&gt;
+function triggerProxyConsoleLog() {
+    window.accessedHandlerGet = false;
+
+    let proxy = new Proxy({foo: 1}, {
+        get(target, name, receiver) {
+            window.accessedHandlerGet = true;
+            return target[name];
+        }
+    });
+
+    console.log(proxy);
+}
+
+function triggerProxyAndPrimitiveConsoleLog() {
+    window.accessedHandlerGet = false;
+
+    let proxy = new Proxy({bar: 2}, {
+        get(target, name, receiver) {
+            window.accessedHandlerGet = true;
+            console.log(1);
+            return target[name];
+        }
+    });
+
+    console.log(0);
+    console.log(proxy);
+    console.log(1);
+}
+
+function test()
+{
+    let suite = InspectorTest.createAsyncSuite(&quot;console.log.proxy&quot;);
+
+    suite.addTestCase({
+        name: &quot;BasicProxyLog&quot;,
+        description: &quot;console.log of a Proxy object should not trigger proxy get trap.&quot;,
+        test(resolve, reject) {
+            InspectorTest.evaluateInPage(&quot;triggerProxyConsoleLog()&quot;, () =&gt; {
+                InspectorTest.evaluateInPage(&quot;window.accessedHandlerGet&quot;, (error, result) =&gt; {
+                    let value = WebInspector.RemoteObject.fromPayload(result).value;
+                    InspectorTest.expectEqual(value, false, &quot;Logging Proxy objects should not have triggered get trap.&quot;);
+                    resolve();
+                });
+            });
+        }
+    });
+
+    suite.addTestCase({
+        name: &quot;AvoidTrapWhenCheckingConsoleRepeat&quot;,
+        description: &quot;console.log repeat checking should not trigger proxy get trap.&quot;,
+        test(resolve, reject) {
+            InspectorTest.evaluateInPage(&quot;triggerProxyAndPrimitiveConsoleLog()&quot;, () =&gt; {
+                InspectorTest.evaluateInPage(&quot;window.accessedHandlerGet&quot;, (error, result) =&gt; {
+                    let value = WebInspector.RemoteObject.fromPayload(result).value;
+                    InspectorTest.expectEqual(value, false, &quot;Logging Proxy objects and primitives should not have triggered get trap.&quot;);
+                    resolve();
+                });
+            });
+        }
+    });
+
+    suite.runTestCasesAndFinish();
+}
+&lt;/script&gt;
+&lt;/head&gt;
+&lt;body onload=&quot;runTest()&quot;&gt;
+&lt;p&gt;Tests for the console.log with Proxy objects.&lt;/p&gt;
+&lt;/body&gt;
+&lt;/html&gt;
</ins></span></pre></div>
<a id="branchessafari602branchLayoutTestsinspectormodelremoteobjectexpectedtxt"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/LayoutTests/inspector/model/remote-object-expected.txt (207944 => 207945)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/LayoutTests/inspector/model/remote-object-expected.txt        2016-10-27 07:12:45 UTC (rev 207944)
+++ branches/safari-602-branch/LayoutTests/inspector/model/remote-object-expected.txt        2016-10-27 07:15:11 UTC (rev 207945)
</span><span class="lines">@@ -4659,64 +4659,28 @@
</span><span class="cx"> EXPRESSION: new Proxy({x:1, y:1}, {handler: true})
</span><span class="cx"> {
</span><span class="cx">   &quot;_type&quot;: &quot;object&quot;,
</span><ins>+  &quot;_subtype&quot;: &quot;proxy&quot;,
</ins><span class="cx">   &quot;_objectId&quot;: &quot;&lt;filtered&gt;&quot;,
</span><del>-  &quot;_description&quot;: &quot;ProxyObject&quot;,
</del><ins>+  &quot;_description&quot;: &quot;Proxy&quot;,
</ins><span class="cx">   &quot;_preview&quot;: {
</span><span class="cx">     &quot;_listeners&quot;: null,
</span><span class="cx">     &quot;_type&quot;: &quot;object&quot;,
</span><del>-    &quot;_description&quot;: &quot;ProxyObject&quot;,
-    &quot;_lossless&quot;: true,
</del><ins>+    &quot;_subtype&quot;: &quot;proxy&quot;,
+    &quot;_description&quot;: &quot;Proxy&quot;,
+    &quot;_lossless&quot;: false,
</ins><span class="cx">     &quot;_overflow&quot;: false,
</span><span class="cx">     &quot;_properties&quot;: [
</span><span class="cx">       {
</span><span class="cx">         &quot;_listeners&quot;: null,
</span><del>-        &quot;_name&quot;: &quot;target&quot;,
-        &quot;_type&quot;: &quot;object&quot;,
-        &quot;_valuePreview&quot;: {
-          &quot;_listeners&quot;: null,
-          &quot;_type&quot;: &quot;object&quot;,
-          &quot;_description&quot;: &quot;Object&quot;,
-          &quot;_lossless&quot;: true,
-          &quot;_overflow&quot;: false,
-          &quot;_properties&quot;: [
-            {
-              &quot;_listeners&quot;: null,
-              &quot;_name&quot;: &quot;x&quot;,
-              &quot;_type&quot;: &quot;number&quot;,
-              &quot;_value&quot;: &quot;1&quot;
-            },
-            {
-              &quot;_listeners&quot;: null,
-              &quot;_name&quot;: &quot;y&quot;,
-              &quot;_type&quot;: &quot;number&quot;,
-              &quot;_value&quot;: &quot;1&quot;
-            }
-          ],
-          &quot;_entries&quot;: null
-        },
-        &quot;_internal&quot;: true
</del><ins>+        &quot;_name&quot;: &quot;x&quot;,
+        &quot;_type&quot;: &quot;number&quot;,
+        &quot;_value&quot;: &quot;1&quot;
</ins><span class="cx">       },
</span><span class="cx">       {
</span><span class="cx">         &quot;_listeners&quot;: null,
</span><del>-        &quot;_name&quot;: &quot;handler&quot;,
-        &quot;_type&quot;: &quot;object&quot;,
-        &quot;_valuePreview&quot;: {
-          &quot;_listeners&quot;: null,
-          &quot;_type&quot;: &quot;object&quot;,
-          &quot;_description&quot;: &quot;Object&quot;,
-          &quot;_lossless&quot;: true,
-          &quot;_overflow&quot;: false,
-          &quot;_properties&quot;: [
-            {
-              &quot;_listeners&quot;: null,
-              &quot;_name&quot;: &quot;handler&quot;,
-              &quot;_type&quot;: &quot;boolean&quot;,
-              &quot;_value&quot;: &quot;true&quot;
-            }
-          ],
-          &quot;_entries&quot;: null
-        },
-        &quot;_internal&quot;: true
</del><ins>+        &quot;_name&quot;: &quot;y&quot;,
+        &quot;_type&quot;: &quot;number&quot;,
+        &quot;_value&quot;: &quot;1&quot;
</ins><span class="cx">       }
</span><span class="cx">     ],
</span><span class="cx">     &quot;_entries&quot;: null
</span><span class="lines">@@ -4724,6 +4688,38 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> -----------------------------------------------------
</span><ins>+EXPRESSION: new Proxy(new Proxy({foo:1, bar:1}, {}), {})
+{
+  &quot;_type&quot;: &quot;object&quot;,
+  &quot;_subtype&quot;: &quot;proxy&quot;,
+  &quot;_objectId&quot;: &quot;&lt;filtered&gt;&quot;,
+  &quot;_description&quot;: &quot;Proxy&quot;,
+  &quot;_preview&quot;: {
+    &quot;_listeners&quot;: null,
+    &quot;_type&quot;: &quot;object&quot;,
+    &quot;_subtype&quot;: &quot;proxy&quot;,
+    &quot;_description&quot;: &quot;Proxy&quot;,
+    &quot;_lossless&quot;: false,
+    &quot;_overflow&quot;: false,
+    &quot;_properties&quot;: [
+      {
+        &quot;_listeners&quot;: null,
+        &quot;_name&quot;: &quot;foo&quot;,
+        &quot;_type&quot;: &quot;number&quot;,
+        &quot;_value&quot;: &quot;1&quot;
+      },
+      {
+        &quot;_listeners&quot;: null,
+        &quot;_name&quot;: &quot;bar&quot;,
+        &quot;_type&quot;: &quot;number&quot;,
+        &quot;_value&quot;: &quot;1&quot;
+      }
+    ],
+    &quot;_entries&quot;: null
+  }
+}
+
+-----------------------------------------------------
</ins><span class="cx"> EXPRESSION: Person = class Person { constructor(name){} get fullName(){} methodName(p1, p2){} }; Person
</span><span class="cx"> {
</span><span class="cx">   &quot;_type&quot;: &quot;function&quot;,
</span></span></pre></div>
<a id="branchessafari602branchLayoutTestsinspectormodelremoteobjecthtml"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/LayoutTests/inspector/model/remote-object.html (207944 => 207945)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/LayoutTests/inspector/model/remote-object.html        2016-10-27 07:12:45 UTC (rev 207944)
+++ branches/safari-602-branch/LayoutTests/inspector/model/remote-object.html        2016-10-27 07:15:11 UTC (rev 207945)
</span><span class="lines">@@ -170,6 +170,7 @@
</span><span class="cx"> 
</span><span class="cx">         // Proxy
</span><span class="cx">         {expression: &quot;new Proxy({x:1, y:1}, {handler: true})&quot;},
</span><ins>+        {expression: &quot;new Proxy(new Proxy({foo:1, bar:1}, {}), {})&quot;},
</ins><span class="cx"> 
</span><span class="cx">     // Classes
</span><span class="cx"> 
</span></span></pre></div>
<a id="branchessafari602branchLayoutTestsplatformmacinspectormodelremoteobjectexpectedtxt"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/LayoutTests/platform/mac/inspector/model/remote-object-expected.txt (207944 => 207945)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/LayoutTests/platform/mac/inspector/model/remote-object-expected.txt        2016-10-27 07:12:45 UTC (rev 207944)
+++ branches/safari-602-branch/LayoutTests/platform/mac/inspector/model/remote-object-expected.txt        2016-10-27 07:15:11 UTC (rev 207945)
</span><span class="lines">@@ -4660,74 +4660,58 @@
</span><span class="cx"> EXPRESSION: new Proxy({x:1, y:1}, {handler: true})
</span><span class="cx"> {
</span><span class="cx">   &quot;_type&quot;: &quot;object&quot;,
</span><ins>+  &quot;_subtype&quot;: &quot;proxy&quot;,
</ins><span class="cx">   &quot;_objectId&quot;: &quot;&lt;filtered&gt;&quot;,
</span><del>-  &quot;_description&quot;: &quot;ProxyObject&quot;,
</del><ins>+  &quot;_description&quot;: &quot;Proxy&quot;,
</ins><span class="cx">   &quot;_preview&quot;: {
</span><span class="cx">     &quot;_listeners&quot;: null,
</span><span class="cx">     &quot;_type&quot;: &quot;object&quot;,
</span><del>-    &quot;_description&quot;: &quot;ProxyObject&quot;,
-    &quot;_lossless&quot;: true,
</del><ins>+    &quot;_subtype&quot;: &quot;proxy&quot;,
+    &quot;_description&quot;: &quot;Proxy&quot;,
+    &quot;_lossless&quot;: false,
</ins><span class="cx">     &quot;_overflow&quot;: false,
</span><span class="cx">     &quot;_properties&quot;: [
</span><span class="cx">       {
</span><span class="cx">         &quot;_listeners&quot;: null,
</span><del>-        &quot;_name&quot;: &quot;target&quot;,
-        &quot;_type&quot;: &quot;object&quot;,
-        &quot;_valuePreview&quot;: {
-          &quot;_listeners&quot;: null,
-          &quot;_type&quot;: &quot;object&quot;,
-          &quot;_description&quot;: &quot;Object&quot;,
-          &quot;_lossless&quot;: true,
-          &quot;_overflow&quot;: false,
-          &quot;_properties&quot;: [
-            {
-              &quot;_listeners&quot;: null,
-              &quot;_name&quot;: &quot;x&quot;,
-              &quot;_type&quot;: &quot;number&quot;,
-              &quot;_value&quot;: &quot;1&quot;
-            },
-            {
-              &quot;_listeners&quot;: null,
-              &quot;_name&quot;: &quot;y&quot;,
-              &quot;_type&quot;: &quot;number&quot;,
-              &quot;_value&quot;: &quot;1&quot;
-            }
-          ],
-          &quot;_entries&quot;: null
-        },
-        &quot;_internal&quot;: true
</del><ins>+        &quot;_name&quot;: &quot;x&quot;,
+        &quot;_type&quot;: &quot;number&quot;,
+        &quot;_value&quot;: &quot;1&quot;
</ins><span class="cx">       },
</span><span class="cx">       {
</span><span class="cx">         &quot;_listeners&quot;: null,
</span><del>-        &quot;_name&quot;: &quot;handler&quot;,
-        &quot;_type&quot;: &quot;object&quot;,
-        &quot;_valuePreview&quot;: {
-          &quot;_listeners&quot;: null,
-          &quot;_type&quot;: &quot;object&quot;,
-          &quot;_description&quot;: &quot;Object&quot;,
-          &quot;_lossless&quot;: true,
-          &quot;_overflow&quot;: false,
-          &quot;_properties&quot;: [
-            {
-              &quot;_listeners&quot;: null,
-              &quot;_name&quot;: &quot;handler&quot;,
-              &quot;_type&quot;: &quot;boolean&quot;,
-              &quot;_value&quot;: &quot;true&quot;
-            }
-          ],
-          &quot;_entries&quot;: null
-        },
-        &quot;_internal&quot;: true
-      },
</del><ins>+        &quot;_name&quot;: &quot;y&quot;,
+        &quot;_type&quot;: &quot;number&quot;,
+        &quot;_value&quot;: &quot;1&quot;
+      }
+    ],
+    &quot;_entries&quot;: null
+  }
+}
+
+-----------------------------------------------------
+EXPRESSION: new Proxy(new Proxy({foo:1, bar:1}, {}), {})
+{
+  &quot;_type&quot;: &quot;object&quot;,
+  &quot;_subtype&quot;: &quot;proxy&quot;,
+  &quot;_objectId&quot;: &quot;&lt;filtered&gt;&quot;,
+  &quot;_description&quot;: &quot;Proxy&quot;,
+  &quot;_preview&quot;: {
+    &quot;_listeners&quot;: null,
+    &quot;_type&quot;: &quot;object&quot;,
+    &quot;_subtype&quot;: &quot;proxy&quot;,
+    &quot;_description&quot;: &quot;Proxy&quot;,
+    &quot;_lossless&quot;: false,
+    &quot;_overflow&quot;: false,
+    &quot;_properties&quot;: [
</ins><span class="cx">       {
</span><span class="cx">         &quot;_listeners&quot;: null,
</span><del>-        &quot;_name&quot;: &quot;x&quot;,
</del><ins>+        &quot;_name&quot;: &quot;foo&quot;,
</ins><span class="cx">         &quot;_type&quot;: &quot;number&quot;,
</span><span class="cx">         &quot;_value&quot;: &quot;1&quot;
</span><span class="cx">       },
</span><span class="cx">       {
</span><span class="cx">         &quot;_listeners&quot;: null,
</span><del>-        &quot;_name&quot;: &quot;y&quot;,
</del><ins>+        &quot;_name&quot;: &quot;bar&quot;,
</ins><span class="cx">         &quot;_type&quot;: &quot;number&quot;,
</span><span class="cx">         &quot;_value&quot;: &quot;1&quot;
</span><span class="cx">       }
</span></span></pre></div>
<a id="branchessafari602branchSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/JavaScriptCore/ChangeLog (207944 => 207945)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/JavaScriptCore/ChangeLog        2016-10-27 07:12:45 UTC (rev 207944)
+++ branches/safari-602-branch/Source/JavaScriptCore/ChangeLog        2016-10-27 07:15:11 UTC (rev 207945)
</span><span class="lines">@@ -1,5 +1,57 @@
</span><span class="cx"> 2016-10-24  Matthew Hanson  &lt;matthew_hanson@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Merge r207229. rdar://problem/28718809
+
+    2016-10-12  Joseph Pecoraro  &lt;pecoraro@apple.com&gt;
+
+            Web Inspector: Improve support for logging Proxy objects in console
+            https://bugs.webkit.org/show_bug.cgi?id=163323
+            &lt;rdar://problem/28432553&gt;
+
+            Reviewed by Timothy Hatcher.
+
+            This is based off of similiar patches in Blink for Proxy handling.
+
+            * bindings/ScriptValue.cpp:
+            (Deprecated::ScriptValue::isEqual):
+            Use strict equality. This is the intent, and it prevents the possibility of triggering
+            primitive conversion on objects in previous ConsoleMessage argument lists.
+
+            * inspector/InjectedScriptSource.js:
+            (InjectedScript.prototype._propertyDescriptors):
+            Bail if the object is a Proxy.
+
+            (InjectedScript.prototype._describe):
+            Provide a friendlier name, &quot;Proxy&quot; instead of &quot;ProxyObject&quot;.
+        
+            (InjectedScript.RemoteObject):
+            When generating a preview for a Proxy object, generate it from the final target
+            and mark it as lossy so that the object can always be expanded to get the internal
+            target/handler properties.
+
+            * inspector/JSInjectedScriptHost.h:
+            * inspector/JSInjectedScriptHost.cpp:
+            (Inspector::JSInjectedScriptHost::subtype):
+            New subtype for Proxy objects.
+
+            (Inspector::JSInjectedScriptHost::proxyTargetValue):
+            Resolve the final target value for a Proxy.
+
+            * inspector/JSInjectedScriptHostPrototype.cpp:
+            (Inspector::JSInjectedScriptHostPrototype::finishCreation):
+            (Inspector::jsInjectedScriptHostPrototypeFunctionProxyTargetValue):
+            Add the new method.
+
+            * inspector/ScriptArguments.cpp:
+            (Inspector::ScriptArguments::getFirstArgumentAsString):
+            Avoid triggering Proxy traps on a Proxy object when getting a quick
+            string description for ConsoleMessages.
+
+            * inspector/protocol/Runtime.json:
+            Add new &quot;proxy&quot; subtype.
+
+2016-10-24  Matthew Hanson  &lt;matthew_hanson@apple.com&gt;
+
</ins><span class="cx">         Merge r206281. rdar://problem/28870938
</span><span class="cx"> 
</span><span class="cx">     2016-09-22  Mark Lam  &lt;mark.lam@apple.com&gt;
</span></span></pre></div>
<a id="branchessafari602branchSourceJavaScriptCorebindingsScriptValuecpp"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/JavaScriptCore/bindings/ScriptValue.cpp (207944 => 207945)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/JavaScriptCore/bindings/ScriptValue.cpp        2016-10-27 07:12:45 UTC (rev 207944)
+++ branches/safari-602-branch/Source/JavaScriptCore/bindings/ScriptValue.cpp        2016-10-27 07:15:11 UTC (rev 207945)
</span><span class="lines">@@ -132,7 +132,7 @@
</span><span class="cx"> {
</span><span class="cx">     if (hasNoValue())
</span><span class="cx">         return anotherValue.hasNoValue();
</span><del>-    return JSValueIsEqual(toRef(scriptState), toRef(scriptState, jsValue()), toRef(scriptState, anotherValue.jsValue()), nullptr);
</del><ins>+    return JSValueIsStrictEqual(toRef(scriptState), toRef(scriptState, jsValue()), toRef(scriptState, anotherValue.jsValue()));
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> bool ScriptValue::isNull() const
</span></span></pre></div>
<a id="branchessafari602branchSourceJavaScriptCoreinspectorInjectedScriptSourcejs"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/JavaScriptCore/inspector/InjectedScriptSource.js (207944 => 207945)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/JavaScriptCore/inspector/InjectedScriptSource.js        2016-10-27 07:12:45 UTC (rev 207944)
+++ branches/safari-602-branch/Source/JavaScriptCore/inspector/InjectedScriptSource.js        2016-10-27 07:15:11 UTC (rev 207945)
</span><span class="lines">@@ -574,6 +574,9 @@
</span><span class="cx"> 
</span><span class="cx">     _propertyDescriptors: function(object, collectionMode, nativeGettersAsValues)
</span><span class="cx">     {
</span><ins>+        if (InjectedScriptHost.subtype(object) === &quot;proxy&quot;)
+            return [];
+
</ins><span class="cx">         var descriptors = [];
</span><span class="cx">         var nameProcessed = new Set;
</span><span class="cx"> 
</span><span class="lines">@@ -732,8 +735,7 @@
</span><span class="cx">         try {
</span><span class="cx">             if (typeof obj.splice === &quot;function&quot; &amp;&amp; isFinite(obj.length))
</span><span class="cx">                 return &quot;array&quot;;
</span><del>-        } catch (e) {
-        }
</del><ins>+        } catch (e) {}
</ins><span class="cx"> 
</span><span class="cx">         return null;
</span><span class="cx">     },
</span><span class="lines">@@ -791,6 +793,9 @@
</span><span class="cx">         if (subtype === &quot;error&quot;)
</span><span class="cx">             return toString(obj);
</span><span class="cx"> 
</span><ins>+        if (subtype === &quot;proxy&quot;)
+            return &quot;Proxy&quot;;
+
</ins><span class="cx">         if (subtype === &quot;node&quot;)
</span><span class="cx">             return this._nodePreview(obj);
</span><span class="cx"> 
</span><span class="lines">@@ -958,8 +963,13 @@
</span><span class="cx">         this.className = object.name;
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    if (generatePreview &amp;&amp; this.type === &quot;object&quot;)
-        this.preview = this._generatePreview(object, undefined, columnNames);
</del><ins>+    if (generatePreview &amp;&amp; this.type === &quot;object&quot;) {
+        if (subtype === &quot;proxy&quot;) {
+            this.preview = this._generatePreview(InjectedScriptHost.proxyTargetValue(object));
+            this.preview.lossless = false;
+        } else
+            this.preview = this._generatePreview(object, undefined, columnNames);
+    }
</ins><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> InjectedScript.RemoteObject.createObjectPreviewForValue = function(value, generatePreview)
</span></span></pre></div>
<a id="branchessafari602branchSourceJavaScriptCoreinspectorJSInjectedScriptHostcpp"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/JavaScriptCore/inspector/JSInjectedScriptHost.cpp (207944 => 207945)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/JavaScriptCore/inspector/JSInjectedScriptHost.cpp        2016-10-27 07:12:45 UTC (rev 207944)
+++ branches/safari-602-branch/Source/JavaScriptCore/inspector/JSInjectedScriptHost.cpp        2016-10-27 07:15:11 UTC (rev 207945)
</span><span class="lines">@@ -165,6 +165,8 @@
</span><span class="cx">         return jsNontrivialString(exec, ASCIILiteral(&quot;date&quot;));
</span><span class="cx">     if (value.inherits(RegExpObject::info()))
</span><span class="cx">         return jsNontrivialString(exec, ASCIILiteral(&quot;regexp&quot;));
</span><ins>+    if (value.inherits(ProxyObject::info()))
+        return jsNontrivialString(exec, ASCIILiteral(&quot;proxy&quot;));
</ins><span class="cx"> 
</span><span class="cx">     if (value.inherits(JSMap::info()))
</span><span class="cx">         return jsNontrivialString(exec, ASCIILiteral(&quot;map&quot;));
</span><span class="lines">@@ -382,6 +384,23 @@
</span><span class="cx">     return jsUndefined();
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+JSValue JSInjectedScriptHost::proxyTargetValue(ExecState *exec)
+{
+    if (exec-&gt;argumentCount() &lt; 1)
+        return jsUndefined();
+
+    JSValue value = exec-&gt;uncheckedArgument(0);
+    ProxyObject* proxy = jsDynamicCast&lt;ProxyObject*&gt;(value);
+    if (!proxy)
+        return jsUndefined();
+
+    JSObject* target = proxy-&gt;target();
+    while (ProxyObject* proxy = jsDynamicCast&lt;ProxyObject*&gt;(target))
+        target = proxy-&gt;target();
+
+    return target;
+}
+
</ins><span class="cx"> JSValue JSInjectedScriptHost::weakMapSize(ExecState* exec)
</span><span class="cx"> {
</span><span class="cx">     if (exec-&gt;argumentCount() &lt; 1)
</span></span></pre></div>
<a id="branchessafari602branchSourceJavaScriptCoreinspectorJSInjectedScriptHosth"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/JavaScriptCore/inspector/JSInjectedScriptHost.h (207944 => 207945)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/JavaScriptCore/inspector/JSInjectedScriptHost.h        2016-10-27 07:12:45 UTC (rev 207944)
+++ branches/safari-602-branch/Source/JavaScriptCore/inspector/JSInjectedScriptHost.h        2016-10-27 07:15:11 UTC (rev 207945)
</span><span class="lines">@@ -66,6 +66,7 @@
</span><span class="cx">     JSC::JSValue subtype(JSC::ExecState*);
</span><span class="cx">     JSC::JSValue functionDetails(JSC::ExecState*);
</span><span class="cx">     JSC::JSValue getInternalProperties(JSC::ExecState*);
</span><ins>+    JSC::JSValue proxyTargetValue(JSC::ExecState*);
</ins><span class="cx">     JSC::JSValue weakMapSize(JSC::ExecState*);
</span><span class="cx">     JSC::JSValue weakMapEntries(JSC::ExecState*);
</span><span class="cx">     JSC::JSValue weakSetSize(JSC::ExecState*);
</span></span></pre></div>
<a id="branchessafari602branchSourceJavaScriptCoreinspectorJSInjectedScriptHostPrototypecpp"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/JavaScriptCore/inspector/JSInjectedScriptHostPrototype.cpp (207944 => 207945)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/JavaScriptCore/inspector/JSInjectedScriptHostPrototype.cpp        2016-10-27 07:12:45 UTC (rev 207944)
+++ branches/safari-602-branch/Source/JavaScriptCore/inspector/JSInjectedScriptHostPrototype.cpp        2016-10-27 07:15:11 UTC (rev 207945)
</span><span class="lines">@@ -43,6 +43,7 @@
</span><span class="cx"> static EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionGetInternalProperties(ExecState*);
</span><span class="cx"> static EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionInternalConstructorName(ExecState*);
</span><span class="cx"> static EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionIsHTMLAllCollection(ExecState*);
</span><ins>+static EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionProxyTargetValue(ExecState*);
</ins><span class="cx"> static EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionWeakMapSize(ExecState*);
</span><span class="cx"> static EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionWeakMapEntries(ExecState*);
</span><span class="cx"> static EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionWeakSetSize(ExecState*);
</span><span class="lines">@@ -65,6 +66,7 @@
</span><span class="cx">     JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION(&quot;getInternalProperties&quot;, jsInjectedScriptHostPrototypeFunctionGetInternalProperties, DontEnum, 1);
</span><span class="cx">     JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION(&quot;internalConstructorName&quot;, jsInjectedScriptHostPrototypeFunctionInternalConstructorName, DontEnum, 1);
</span><span class="cx">     JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION(&quot;isHTMLAllCollection&quot;, jsInjectedScriptHostPrototypeFunctionIsHTMLAllCollection, DontEnum, 1);
</span><ins>+    JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION(&quot;proxyTargetValue&quot;, jsInjectedScriptHostPrototypeFunctionProxyTargetValue, DontEnum, 1);
</ins><span class="cx">     JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION(&quot;weakMapSize&quot;, jsInjectedScriptHostPrototypeFunctionWeakMapSize, DontEnum, 1);
</span><span class="cx">     JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION(&quot;weakMapEntries&quot;, jsInjectedScriptHostPrototypeFunctionWeakMapEntries, DontEnum, 1);
</span><span class="cx">     JSC_NATIVE_FUNCTION_WITHOUT_TRANSITION(&quot;weakSetSize&quot;, jsInjectedScriptHostPrototypeFunctionWeakSetSize, DontEnum, 1);
</span><span class="lines">@@ -105,6 +107,16 @@
</span><span class="cx">     return JSValue::encode(castedThis-&gt;isHTMLAllCollection(exec));
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionProxyTargetValue(ExecState* exec)
+{
+    JSValue thisValue = exec-&gt;thisValue();
+    JSInjectedScriptHost* castedThis = jsDynamicCast&lt;JSInjectedScriptHost*&gt;(thisValue);
+    if (!castedThis)
+        return throwVMTypeError(exec);
+
+    return JSValue::encode(castedThis-&gt;proxyTargetValue(exec));
+}
+
</ins><span class="cx"> EncodedJSValue JSC_HOST_CALL jsInjectedScriptHostPrototypeFunctionWeakMapSize(ExecState* exec)
</span><span class="cx"> {
</span><span class="cx">     JSValue thisValue = exec-&gt;thisValue();
</span></span></pre></div>
<a id="branchessafari602branchSourceJavaScriptCoreinspectorScriptArgumentscpp"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/JavaScriptCore/inspector/ScriptArguments.cpp (207944 => 207945)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/JavaScriptCore/inspector/ScriptArguments.cpp        2016-10-27 07:12:45 UTC (rev 207944)
+++ branches/safari-602-branch/Source/JavaScriptCore/inspector/ScriptArguments.cpp        2016-10-27 07:15:11 UTC (rev 207945)
</span><span class="lines">@@ -33,6 +33,7 @@
</span><span class="cx"> #include &quot;ScriptArguments.h&quot;
</span><span class="cx"> 
</span><span class="cx"> #include &quot;JSCInlines.h&quot;
</span><ins>+#include &quot;ProxyObject.h&quot;
</ins><span class="cx"> #include &quot;ScriptValue.h&quot;
</span><span class="cx"> 
</span><span class="cx"> namespace Inspector {
</span><span class="lines">@@ -86,6 +87,12 @@
</span><span class="cx">         return false;
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    JSC::JSValue value = argumentAt(0).jsValue();
+    if (JSC::jsDynamicCast&lt;JSC::ProxyObject*&gt;(value)) {
+        result = ASCIILiteral(&quot;[object Proxy]&quot;);
+        return true;
+    }
+
</ins><span class="cx">     result = argumentAt(0).toString(globalState());
</span><span class="cx">     return true;
</span><span class="cx"> }
</span></span></pre></div>
<a id="branchessafari602branchSourceJavaScriptCoreinspectorprotocolRuntimejson"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/JavaScriptCore/inspector/protocol/Runtime.json (207944 => 207945)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/JavaScriptCore/inspector/protocol/Runtime.json        2016-10-27 07:12:45 UTC (rev 207944)
+++ branches/safari-602-branch/Source/JavaScriptCore/inspector/protocol/Runtime.json        2016-10-27 07:15:11 UTC (rev 207945)
</span><span class="lines">@@ -13,7 +13,7 @@
</span><span class="cx">             &quot;description&quot;: &quot;Mirror object referencing original JavaScript object.&quot;,
</span><span class="cx">             &quot;properties&quot;: [
</span><span class="cx">                 { &quot;name&quot;: &quot;type&quot;, &quot;type&quot;: &quot;string&quot;, &quot;enum&quot;: [&quot;object&quot;, &quot;function&quot;, &quot;undefined&quot;, &quot;string&quot;, &quot;number&quot;, &quot;boolean&quot;, &quot;symbol&quot;], &quot;description&quot;: &quot;Object type.&quot; },
</span><del>-                { &quot;name&quot;: &quot;subtype&quot;, &quot;type&quot;: &quot;string&quot;, &quot;optional&quot;: true, &quot;enum&quot;: [&quot;array&quot;, &quot;null&quot;, &quot;node&quot;, &quot;regexp&quot;, &quot;date&quot;, &quot;error&quot;, &quot;map&quot;, &quot;set&quot;, &quot;weakmap&quot;, &quot;weakset&quot;, &quot;iterator&quot;, &quot;class&quot;], &quot;description&quot;: &quot;Object subtype hint. Specified for &lt;code&gt;object&lt;/code&gt; &lt;code&gt;function&lt;/code&gt; (for class) type values only.&quot; },
</del><ins>+                { &quot;name&quot;: &quot;subtype&quot;, &quot;type&quot;: &quot;string&quot;, &quot;optional&quot;: true, &quot;enum&quot;: [&quot;array&quot;, &quot;null&quot;, &quot;node&quot;, &quot;regexp&quot;, &quot;date&quot;, &quot;error&quot;, &quot;map&quot;, &quot;set&quot;, &quot;weakmap&quot;, &quot;weakset&quot;, &quot;iterator&quot;, &quot;class&quot;, &quot;proxy&quot;], &quot;description&quot;: &quot;Object subtype hint. Specified for &lt;code&gt;object&lt;/code&gt; &lt;code&gt;function&lt;/code&gt; (for class) type values only.&quot; },
</ins><span class="cx">                 { &quot;name&quot;: &quot;className&quot;, &quot;type&quot;: &quot;string&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;Object class (constructor) name. Specified for &lt;code&gt;object&lt;/code&gt; type values only.&quot; },
</span><span class="cx">                 { &quot;name&quot;: &quot;value&quot;, &quot;type&quot;: &quot;any&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;Remote object value (in case of primitive values or JSON values if it was requested).&quot; },
</span><span class="cx">                 { &quot;name&quot;: &quot;description&quot;, &quot;type&quot;: &quot;string&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;String representation of the object.&quot; },
</span><span class="lines">@@ -29,7 +29,7 @@
</span><span class="cx">             &quot;description&quot;: &quot;Object containing abbreviated remote object value.&quot;,
</span><span class="cx">             &quot;properties&quot;: [
</span><span class="cx">                 { &quot;name&quot;: &quot;type&quot;, &quot;type&quot;: &quot;string&quot;, &quot;enum&quot;: [&quot;object&quot;, &quot;function&quot;, &quot;undefined&quot;, &quot;string&quot;, &quot;number&quot;, &quot;boolean&quot;, &quot;symbol&quot;], &quot;description&quot;: &quot;Object type.&quot; },
</span><del>-                { &quot;name&quot;: &quot;subtype&quot;, &quot;type&quot;: &quot;string&quot;, &quot;optional&quot;: true, &quot;enum&quot;: [&quot;array&quot;, &quot;null&quot;, &quot;node&quot;, &quot;regexp&quot;, &quot;date&quot;, &quot;error&quot;, &quot;map&quot;, &quot;set&quot;, &quot;weakmap&quot;, &quot;weakset&quot;, &quot;iterator&quot;, &quot;class&quot;], &quot;description&quot;: &quot;Object subtype hint. Specified for &lt;code&gt;object&lt;/code&gt; type values only.&quot; },
</del><ins>+                { &quot;name&quot;: &quot;subtype&quot;, &quot;type&quot;: &quot;string&quot;, &quot;optional&quot;: true, &quot;enum&quot;: [&quot;array&quot;, &quot;null&quot;, &quot;node&quot;, &quot;regexp&quot;, &quot;date&quot;, &quot;error&quot;, &quot;map&quot;, &quot;set&quot;, &quot;weakmap&quot;, &quot;weakset&quot;, &quot;iterator&quot;, &quot;class&quot;, &quot;proxy&quot;], &quot;description&quot;: &quot;Object subtype hint. Specified for &lt;code&gt;object&lt;/code&gt; type values only.&quot; },
</ins><span class="cx">                 { &quot;name&quot;: &quot;description&quot;, &quot;type&quot;: &quot;string&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;String representation of the object.&quot; },
</span><span class="cx">                 { &quot;name&quot;: &quot;lossless&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;description&quot;: &quot;Determines whether preview is lossless (contains all information of the original object).&quot; },
</span><span class="cx">                 { &quot;name&quot;: &quot;overflow&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;True iff some of the properties of the original did not fit.&quot; },
</span><span class="lines">@@ -44,7 +44,7 @@
</span><span class="cx">             &quot;properties&quot;: [
</span><span class="cx">                 { &quot;name&quot;: &quot;name&quot;, &quot;type&quot;: &quot;string&quot;, &quot;description&quot;: &quot;Property name.&quot; },
</span><span class="cx">                 { &quot;name&quot;: &quot;type&quot;, &quot;type&quot;: &quot;string&quot;, &quot;enum&quot;: [&quot;object&quot;, &quot;function&quot;, &quot;undefined&quot;, &quot;string&quot;, &quot;number&quot;, &quot;boolean&quot;, &quot;symbol&quot;, &quot;accessor&quot;], &quot;description&quot;: &quot;Object type.&quot; },
</span><del>-                { &quot;name&quot;: &quot;subtype&quot;, &quot;type&quot;: &quot;string&quot;, &quot;optional&quot;: true, &quot;enum&quot;: [&quot;array&quot;, &quot;null&quot;, &quot;node&quot;, &quot;regexp&quot;, &quot;date&quot;, &quot;error&quot;, &quot;map&quot;, &quot;set&quot;, &quot;weakmap&quot;, &quot;weakset&quot;, &quot;iterator&quot;, &quot;class&quot;], &quot;description&quot;: &quot;Object subtype hint. Specified for &lt;code&gt;object&lt;/code&gt; type values only.&quot; },
</del><ins>+                { &quot;name&quot;: &quot;subtype&quot;, &quot;type&quot;: &quot;string&quot;, &quot;optional&quot;: true, &quot;enum&quot;: [&quot;array&quot;, &quot;null&quot;, &quot;node&quot;, &quot;regexp&quot;, &quot;date&quot;, &quot;error&quot;, &quot;map&quot;, &quot;set&quot;, &quot;weakmap&quot;, &quot;weakset&quot;, &quot;iterator&quot;, &quot;class&quot;, &quot;proxy&quot;], &quot;description&quot;: &quot;Object subtype hint. Specified for &lt;code&gt;object&lt;/code&gt; type values only.&quot; },
</ins><span class="cx">                 { &quot;name&quot;: &quot;value&quot;, &quot;type&quot;: &quot;string&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;User-friendly property value string.&quot; },
</span><span class="cx">                 { &quot;name&quot;: &quot;valuePreview&quot;, &quot;$ref&quot;: &quot;ObjectPreview&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;Nested value preview.&quot; },
</span><span class="cx">                 { &quot;name&quot;: &quot;internal&quot;, &quot;type&quot;: &quot;boolean&quot;, &quot;optional&quot;: true, &quot;description&quot;: &quot;True if this is an internal property.&quot; }
</span></span></pre></div>
<a id="branchessafari602branchSourceWebInspectorUIChangeLog"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/WebInspectorUI/ChangeLog (207944 => 207945)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/WebInspectorUI/ChangeLog        2016-10-27 07:12:45 UTC (rev 207944)
+++ branches/safari-602-branch/Source/WebInspectorUI/ChangeLog        2016-10-27 07:15:11 UTC (rev 207945)
</span><span class="lines">@@ -1,3 +1,19 @@
</span><ins>+2016-10-24  Matthew Hanson  &lt;matthew_hanson@apple.com&gt;
+
+        Merge r207229. rdar://problem/28718809
+
+    2016-10-12  Joseph Pecoraro  &lt;pecoraro@apple.com&gt;
+
+            Web Inspector: Improve support for logging Proxy objects in console
+            https://bugs.webkit.org/show_bug.cgi?id=163323
+            &lt;rdar://problem/28432553&gt;
+
+            Reviewed by Timothy Hatcher.
+
+            * UserInterface/Views/ConsoleMessageView.js:
+            (WebInspector.ConsoleMessageView.prototype._formatParameter):
+            Treat a Proxy like any other object.
+
</ins><span class="cx"> 2016-10-12  Matthew Hanson  &lt;matthew_hanson@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Merge r204428. rdar://problem/28476954
</span></span></pre></div>
<a id="branchessafari602branchSourceWebInspectorUIUserInterfaceViewsConsoleMessageViewjs"></a>
<div class="modfile"><h4>Modified: branches/safari-602-branch/Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.js (207944 => 207945)</h4>
<pre class="diff"><span>
<span class="info">--- branches/safari-602-branch/Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.js        2016-10-27 07:12:45 UTC (rev 207944)
+++ branches/safari-602-branch/Source/WebInspectorUI/UserInterface/Views/ConsoleMessageView.js        2016-10-27 07:15:11 UTC (rev 207945)
</span><span class="lines">@@ -536,6 +536,7 @@
</span><span class="cx">             &quot;weakset&quot;: this._formatParameterAsObject,
</span><span class="cx">             &quot;iterator&quot;: this._formatParameterAsObject,
</span><span class="cx">             &quot;class&quot;: this._formatParameterAsObject,
</span><ins>+            &quot;proxy&quot;: this._formatParameterAsObject,
</ins><span class="cx">             &quot;array&quot;: this._formatParameterAsArray,
</span><span class="cx">             &quot;node&quot;: this._formatParameterAsNode,
</span><span class="cx">             &quot;string&quot;: this._formatParameterAsString,
</span></span></pre>
</div>
</div>

</body>
</html>