Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(694)

Unified Diff: Source/core/frame/DOMWindowBase64.cpp

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/frame/DOMWindow.cpp ('k') | Source/core/frame/Location.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/DOMWindowBase64.cpp
diff --git a/Source/core/frame/DOMWindowBase64.cpp b/Source/core/frame/DOMWindowBase64.cpp
index 2d2e1f7c3240a3d747745426761edbd16ab1f592..2f43d507a7734917ebc143b517e977046fca3b5c 100644
--- a/Source/core/frame/DOMWindowBase64.cpp
+++ b/Source/core/frame/DOMWindowBase64.cpp
@@ -48,7 +48,7 @@ String btoa(void*, const String& stringToEncode, ExceptionState& exceptionState)
return String();
if (!stringToEncode.containsOnlyLatin1()) {
- exceptionState.throwDOMException(InvalidCharacterError, "'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");
+ exceptionState.throwDOMException(InvalidCharacterError, "The string to be encoded contains characters outside of the Latin1 range.");
return String();
}
@@ -61,12 +61,12 @@ String atob(void*, const String& encodedString, ExceptionState& exceptionState)
return String();
if (!encodedString.containsOnlyLatin1()) {
- exceptionState.throwDOMException(InvalidCharacterError, "'atob' failed: The string to be decoded contains characters outside of the Latin1 range.");
+ exceptionState.throwDOMException(InvalidCharacterError, "The string to be decoded contains characters outside of the Latin1 range.");
return String();
}
Vector<char> out;
if (!base64Decode(encodedString, out, isHTMLSpace<UChar>, Base64ValidatePadding)) {
- exceptionState.throwDOMException(InvalidCharacterError, "'atob' failed: The string to be decoded is not correctly encoded.");
+ exceptionState.throwDOMException(InvalidCharacterError, "The string to be decoded is not correctly encoded.");
return String();
}
« no previous file with comments | « Source/core/frame/DOMWindow.cpp ('k') | Source/core/frame/Location.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698