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

Unified Diff: Source/bindings/core/v8/V8ThrowException.cpp

Issue 692443002: Move the v8::Isolate* parameter to the first parameter of various binding methods in third_party/We… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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/core/v8/V8ThrowException.h ('k') | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/V8ThrowException.cpp
diff --git a/Source/bindings/core/v8/V8ThrowException.cpp b/Source/bindings/core/v8/V8ThrowException.cpp
index 9c77e6bb4ff796def51211f3b4972ca74a03b84f..67a47c1b8e5d8b93e64d7ad24610ab699fe0673f 100644
--- a/Source/bindings/core/v8/V8ThrowException.cpp
+++ b/Source/bindings/core/v8/V8ThrowException.cpp
@@ -54,9 +54,9 @@ v8::Handle<v8::Value> V8ThrowException::createDOMException(int ec, const String&
if (ec == V8GeneralError)
return V8ThrowException::createGeneralError(isolate, sanitizedMessage);
if (ec == V8TypeError)
- return V8ThrowException::createTypeError(sanitizedMessage, isolate);
+ return V8ThrowException::createTypeError(isolate, sanitizedMessage);
if (ec == V8RangeError)
- return V8ThrowException::createRangeError(sanitizedMessage, isolate);
+ return V8ThrowException::createRangeError(isolate, sanitizedMessage);
if (ec == V8SyntaxError)
return V8ThrowException::createSyntaxError(isolate, sanitizedMessage);
if (ec == V8ReferenceError)
@@ -99,25 +99,25 @@ v8::Handle<v8::Value> V8ThrowException::throwGeneralError(v8::Isolate* isolate,
return V8ThrowException::throwException(exception, isolate);
}
-v8::Handle<v8::Value> V8ThrowException::createTypeError(const String& message, v8::Isolate* isolate)
+v8::Handle<v8::Value> V8ThrowException::createTypeError(v8::Isolate* isolate, const String& message)
{
return v8::Exception::TypeError(v8String(isolate, message.isNull() ? "Type error" : message));
}
v8::Handle<v8::Value> V8ThrowException::throwTypeError(const String& message, v8::Isolate* isolate)
{
- v8::Handle<v8::Value> exception = V8ThrowException::createTypeError(message, isolate);
+ v8::Handle<v8::Value> exception = V8ThrowException::createTypeError(isolate, message);
return V8ThrowException::throwException(exception, isolate);
}
-v8::Handle<v8::Value> V8ThrowException::createRangeError(const String& message, v8::Isolate* isolate)
+v8::Handle<v8::Value> V8ThrowException::createRangeError(v8::Isolate* isolate, const String& message)
{
return v8::Exception::RangeError(v8String(isolate, message.isNull() ? "Range error" : message));
}
-v8::Handle<v8::Value> V8ThrowException::throwRangeError(const String& message, v8::Isolate* isolate)
+v8::Handle<v8::Value> V8ThrowException::throwRangeError(v8::Isolate* isolate, const String& message)
{
- v8::Handle<v8::Value> exception = V8ThrowException::createRangeError(message, isolate);
+ v8::Handle<v8::Value> exception = V8ThrowException::createRangeError(isolate, message);
return V8ThrowException::throwException(exception, isolate);
}
« no previous file with comments | « Source/bindings/core/v8/V8ThrowException.h ('k') | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698