diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/bindings/js/JSExceptionBase.cpp | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/bindings/js/JSExceptionBase.cpp')
-rw-r--r-- | Source/WebCore/bindings/js/JSExceptionBase.cpp | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/Source/WebCore/bindings/js/JSExceptionBase.cpp b/Source/WebCore/bindings/js/JSExceptionBase.cpp index 8a51e0c97..f9238f333 100644 --- a/Source/WebCore/bindings/js/JSExceptionBase.cpp +++ b/Source/WebCore/bindings/js/JSExceptionBase.cpp @@ -27,40 +27,23 @@ #include "JSExceptionBase.h" #include "JSDOMCoreException.h" -#include "JSEventException.h" -#include "JSRangeException.h" -#include "JSXMLHttpRequestException.h" -#if ENABLE(SQL_DATABASE) -#include "SQLException.h" #include "JSSQLException.h" -#endif -#if ENABLE(SVG) #include "JSSVGException.h" -#endif #include "JSXPathException.h" +#include "SQLException.h" namespace WebCore { -ExceptionBase* toExceptionBase(JSC::JSValue value) +ExceptionBase* toExceptionBase(JSC::VM& vm, JSC::JSValue value) { - if (DOMCoreException* domException = toDOMCoreException(value)) + if (DOMCoreException* domException = JSDOMCoreException::toWrapped(vm, value)) return reinterpret_cast<ExceptionBase*>(domException); - if (RangeException* rangeException = toRangeException(value)) - return reinterpret_cast<ExceptionBase*>(rangeException); - if (EventException* eventException = toEventException(value)) - return reinterpret_cast<ExceptionBase*>(eventException); - if (XMLHttpRequestException* xmlHttpException = toXMLHttpRequestException(value)) - return reinterpret_cast<ExceptionBase*>(xmlHttpException); -#if ENABLE(SVG) - if (SVGException* svgException = toSVGException(value)) + if (SVGException* svgException = JSSVGException::toWrapped(vm, value)) return reinterpret_cast<ExceptionBase*>(svgException); -#endif - if (XPathException* pathException = toXPathException(value)) + if (XPathException* pathException = JSXPathException::toWrapped(vm, value)) return reinterpret_cast<ExceptionBase*>(pathException); -#if ENABLE(SQL_DATABASE) - if (SQLException* pathException = toSQLException(value)) + if (SQLException* pathException = JSSQLException::toWrapped(vm, value)) return reinterpret_cast<ExceptionBase*>(pathException); -#endif return 0; } |