<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Inspector::InspectorValue class doesn't handle undefined type"
   href="https://bugs.webkit.org/show_bug.cgi?id=165506#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Inspector::InspectorValue class doesn't handle undefined type"
   href="https://bugs.webkit.org/show_bug.cgi?id=165506">bug 165506</a>
              from <span class="vcard"><a class="email" href="mailto:karim&#64;karhm.com" title="Karim &lt;karim&#64;karhm.com&gt;"> <span class="fn">Karim</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=296360&amp;action=diff" name="attach_296360" title="Patch">attachment 296360</a> <a href="attachment.cgi?id=296360&amp;action=edit" title="Patch">[details]</a></span>
Patch

<span class="quote">&gt;Index: Source/JavaScriptCore/ChangeLog
&gt;===================================================================
&gt;--- Source/JavaScriptCore/ChangeLog        (revision 209439)
&gt;+++ Source/JavaScriptCore/ChangeLog        (working copy)
&gt;&#64;&#64; -1,3 +1,15 &#64;&#64;
&gt;+2016-12-06  Karim H  &lt;<a href="mailto:karim&#64;karhm.com">karim&#64;karhm.com</a>&gt;
&gt;+
&gt;+        Added undefined type and fixed related issues
&gt;+        <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Inspector::InspectorValue class doesn't handle undefined type"
   href="show_bug.cgi?id=165506">https://bugs.webkit.org/show_bug.cgi?id=165506</a>
&gt;+
&gt;+        Reviewed by NOBODY (OOPS!).
&gt;+
&gt;+        * inspector/InspectorValues.cpp:
&gt;+        (Inspector::InspectorValue::undefined):
&gt;+        * inspector/InspectorValues.h:
&gt;+
&gt; 2016-12-06  Alexey Proskuryakov  &lt;<a href="mailto:ap&#64;apple.com">ap&#64;apple.com</a>&gt;
&gt; 
&gt;         Correct SDKROOT values in xcconfig files
&gt;Index: Source/JavaScriptCore/inspector/InspectorValues.cpp
&gt;===================================================================
&gt;--- Source/JavaScriptCore/inspector/InspectorValues.cpp        (revision 209405)
&gt;+++ Source/JavaScriptCore/inspector/InspectorValues.cpp        (working copy)
&gt;&#64;&#64; -485,6 +485,11 &#64;&#64; Ref&lt;InspectorValue&gt; InspectorValue::null
&gt;     return adoptRef(*new InspectorValue);
&gt; }
&gt; 
&gt;+Ref&lt;InspectorValue&gt; InspectorValue::undefined()
&gt;+{
&gt;+    return adoptRef(*new InspectorValue(Type::Undefined));
&gt;+}
&gt;+
&gt; Ref&lt;InspectorValue&gt; InspectorValue::create(bool value)
&gt; {
&gt;     return adoptRef(*new InspectorValue(value));
&gt;Index: Source/JavaScriptCore/inspector/InspectorValues.h
&gt;===================================================================
&gt;--- Source/JavaScriptCore/inspector/InspectorValues.h        (revision 209405)
&gt;+++ Source/JavaScriptCore/inspector/InspectorValues.h        (working copy)
&gt;&#64;&#64; -64,11 +64,13 &#64;&#64; public:
&gt;             break;
&gt;         case Type::Object:
&gt;         case Type::Array:
&gt;+        case Type::Undefined:
&gt;             break;
&gt;         }
&gt;     }
&gt; 
&gt;     static Ref&lt;InspectorValue&gt; null();
&gt;+    static Ref&lt;InspectorValue&gt; undefined();
&gt;     static Ref&lt;InspectorValue&gt; create(bool);
&gt;     static Ref&lt;InspectorValue&gt; create(int);
&gt;     static Ref&lt;InspectorValue&gt; create(double);
&gt;&#64;&#64; -83,10 +85,12 &#64;&#64; public:
&gt;         String,
&gt;         Object,
&gt;         Array,
&gt;+        Undefined,
&gt;     };
&gt; 
&gt;     Type type() const { return m_type; }
&gt;     bool isNull() const { return m_type == Type::Null; }
&gt;+    bool isUndefined() const { return m_type == Type::Undefined; }
&gt; 
&gt;     bool asBoolean(bool&amp;) const;
&gt;     bool asInteger(int&amp;) const;</span ></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>