2010-12-11 Joone Hur <joone@kldp.org>
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Dec 2010 18:20:52 +0000 (18:20 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 11 Dec 2010 18:20:52 +0000 (18:20 +0000)
        Reviewed by Alexey Proskuryakov.

        enumeration value ‘ResponseTypeArrayBuffer’ not handled in switch
        https://bugs.webkit.org/show_bug.cgi?id=50871

        Fix the warning which occurs when enumeration value is not handled in switch.

        No new tests, no change in behavior.

        * bindings/js/JSXMLHttpRequestCustom.cpp:
        (WebCore::JSXMLHttpRequest::response):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@73860 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/bindings/js/JSXMLHttpRequestCustom.cpp

index 7575d85..7bf42b3 100644 (file)
@@ -1,3 +1,17 @@
+2010-12-11  Joone Hur  <joone@kldp.org>
+
+        Reviewed by Alexey Proskuryakov.
+
+        enumeration value ‘ResponseTypeArrayBuffer’ not handled in switch
+        https://bugs.webkit.org/show_bug.cgi?id=50871
+
+        Fix the warning which occurs when enumeration value is not handled in switch.
+
+        No new tests, no change in behavior.
+
+        * bindings/js/JSXMLHttpRequestCustom.cpp:
+        (WebCore::JSXMLHttpRequest::response):
+
 2010-12-11  Patrick Gansterer  <paroga@webkit.org>
 
         Reviewed by Darin Adler.
index 7cf8207..a93db11 100644 (file)
@@ -188,8 +188,8 @@ JSValue JSXMLHttpRequest::response(ExecState* exec) const
         return jsUndefined();
 #endif
 
-#if ENABLE(3D_CANVAS) || ENABLE(BLOB)
     case XMLHttpRequest::ResponseTypeArrayBuffer:
+#if ENABLE(3D_CANVAS) || ENABLE(BLOB)
         {
             ExceptionCode ec = 0;
             ArrayBuffer* arrayBuffer = impl()->responseArrayBuffer(ec);
@@ -199,6 +199,8 @@ JSValue JSXMLHttpRequest::response(ExecState* exec) const
             }
             return toJS(exec, globalObject(), arrayBuffer);
         }
+#else
+        return jsUndefined();
 #endif
     }