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):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73860 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent ff73c8f0
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.
......
......@@ -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
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment