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

Unified Diff: Source/bindings/v8/SerializedScriptValue.cpp

Issue 18548003: Rename ExceptionCode constants to use the names in the spec (2/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months 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/bindings/scripts/CodeGeneratorV8.pm ('k') | Source/bindings/v8/V8Callback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/SerializedScriptValue.cpp
diff --git a/Source/bindings/v8/SerializedScriptValue.cpp b/Source/bindings/v8/SerializedScriptValue.cpp
index cdad44eeca7902f06315d29a56b9e5face901544..e43bdab37e0675195de25f74a660c8f0931c8de7 100644
--- a/Source/bindings/v8/SerializedScriptValue.cpp
+++ b/Source/bindings/v8/SerializedScriptValue.cpp
@@ -2385,7 +2385,7 @@ PassOwnPtr<SerializedScriptValue::ArrayBufferContentsArray> SerializedScriptValu
for (size_t i = 0; i < arrayBuffers.size(); i++) {
if (arrayBuffers[i]->isNeutered()) {
- setDOMException(INVALID_STATE_ERR, isolate);
+ setDOMException(InvalidStateError, isolate);
didThrow = true;
return nullptr;
}
@@ -2403,7 +2403,7 @@ PassOwnPtr<SerializedScriptValue::ArrayBufferContentsArray> SerializedScriptValu
bool result = arrayBuffers[i]->transfer(contents->at(i), neuteredViews);
if (!result) {
- setDOMException(INVALID_STATE_ERR, isolate);
+ setDOMException(InvalidStateError, isolate);
didThrow = true;
return nullptr;
}
@@ -2442,7 +2442,7 @@ SerializedScriptValue::SerializedScriptValue(v8::Handle<v8::Value> value, Messag
return;
case Serializer::InvalidStateError:
didThrow = true;
- setDOMException(INVALID_STATE_ERR, isolate);
+ setDOMException(InvalidStateError, isolate);
return;
case Serializer::JSFailure:
// If there was a JS failure (but no exception), there's not
« no previous file with comments | « Source/bindings/scripts/CodeGeneratorV8.pm ('k') | Source/bindings/v8/V8Callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698