| Index: Source/core/dom/DOMException.cpp
|
| diff --git a/Source/core/dom/DOMException.cpp b/Source/core/dom/DOMException.cpp
|
| index 3287698668b707b9d4c5b041cc8dd22ba8265d74..7510e27dbd2655ec999759c5d87ba5fe71bc4003 100644
|
| --- a/Source/core/dom/DOMException.cpp
|
| +++ b/Source/core/dom/DOMException.cpp
|
| @@ -100,8 +100,8 @@ PassRefPtr<DOMException> DOMException::create(ExceptionCode ec, const String& me
|
| const CoreException* entry = getErrorEntry(ec);
|
| ASSERT(entry);
|
| return adoptRef(new DOMException(entry->code,
|
| - ASCIILiteral(entry->name ? entry->name : "Error"),
|
| - message.isNull() ? String(ASCIILiteral(entry->message)) : message));
|
| + entry->name ? entry->name : "Error",
|
| + message.isNull() ? String(entry->message) : message));
|
| }
|
|
|
| String DOMException::toString() const
|
| @@ -114,9 +114,9 @@ String DOMException::getErrorName(ExceptionCode ec)
|
| const CoreException* entry = getErrorEntry(ec);
|
| ASSERT(entry);
|
| if (!entry)
|
| - return ASCIILiteral("UnknownError");
|
| + return "UnknownError";
|
|
|
| - return ASCIILiteral(entry->name);
|
| + return entry->name;
|
| }
|
|
|
| String DOMException::getErrorMessage(ExceptionCode ec)
|
| @@ -124,9 +124,9 @@ String DOMException::getErrorMessage(ExceptionCode ec)
|
| const CoreException* entry = getErrorEntry(ec);
|
| ASSERT(entry);
|
| if (!entry)
|
| - return ASCIILiteral("Unknown error.");
|
| + return "Unknown error.";
|
|
|
| - return ASCIILiteral(entry->message);
|
| + return entry->message;
|
| }
|
|
|
| unsigned short DOMException::getLegacyErrorCode(ExceptionCode ec)
|
|
|