tizen beta release
[framework/web/webkit-efl.git] / Source / WebCore / bindings / objc / ExceptionHandlers.mm
index 96ba2c9..403ad9b 100755 (executable)
@@ -43,10 +43,10 @@ void raiseDOMException(ExceptionCode ec)
 {
     ASSERT(ec);
 
-    ExceptionCodeDescription description;
-    getExceptionCodeDescription(ec, description);
+    ExceptionCodeDescription description(ec);
 
     NSString *exceptionName;
+    // FIXME: We can use the enum to do these comparisons faster.
     if (strcmp(description.typeName, "DOM Range") == 0)
         exceptionName = DOMRangeException;
     else if (strcmp(description.typeName, "DOM Events") == 0)