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

Unified Diff: Source/bindings/tests/results/V8TestInterface2.cpp

Issue 284163002: Better arity checks for overloads (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Return properly Created 6 years, 7 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
Index: Source/bindings/tests/results/V8TestInterface2.cpp
diff --git a/Source/bindings/tests/results/V8TestInterface2.cpp b/Source/bindings/tests/results/V8TestInterface2.cpp
index 4ac44f398d0d75e9dcfb05c47e7e8055c0e0873d..d2596297bdf25d08941369e9bc880018d6b6ea3a 100644
--- a/Source/bindings/tests/results/V8TestInterface2.cpp
+++ b/Source/bindings/tests/results/V8TestInterface2.cpp
@@ -52,7 +52,7 @@ static void itemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
ExceptionState exceptionState(ExceptionState::ExecutionContext, "item", "TestInterface2", info.Holder(), info.GetIsolate());
if (UNLIKELY(info.Length() < 1)) {
- throwArityTypeError(exceptionState, 1, info.Length());
+ throwMinimumArityTypeError(exceptionState, 1, info.Length());
return;
}
TestInterface2* impl = V8TestInterface2::toNative(info.Holder());
@@ -74,7 +74,7 @@ static void setItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
ExceptionState exceptionState(ExceptionState::ExecutionContext, "setItem", "TestInterface2", info.Holder(), info.GetIsolate());
if (UNLIKELY(info.Length() < 2)) {
- throwArityTypeError(exceptionState, 2, info.Length());
+ throwMinimumArityTypeError(exceptionState, 2, info.Length());
return;
}
TestInterface2* impl = V8TestInterface2::toNative(info.Holder());
@@ -97,7 +97,7 @@ static void deleteItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
ExceptionState exceptionState(ExceptionState::ExecutionContext, "deleteItem", "TestInterface2", info.Holder(), info.GetIsolate());
if (UNLIKELY(info.Length() < 1)) {
- throwArityTypeError(exceptionState, 1, info.Length());
+ throwMinimumArityTypeError(exceptionState, 1, info.Length());
return;
}
TestInterface2* impl = V8TestInterface2::toNative(info.Holder());
@@ -119,7 +119,7 @@ static void namedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
ExceptionState exceptionState(ExceptionState::ExecutionContext, "namedItem", "TestInterface2", info.Holder(), info.GetIsolate());
if (UNLIKELY(info.Length() < 1)) {
- throwArityTypeError(exceptionState, 1, info.Length());
+ throwMinimumArityTypeError(exceptionState, 1, info.Length());
return;
}
TestInterface2* impl = V8TestInterface2::toNative(info.Holder());
@@ -141,7 +141,7 @@ static void setNamedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
{
ExceptionState exceptionState(ExceptionState::ExecutionContext, "setNamedItem", "TestInterface2", info.Holder(), info.GetIsolate());
if (UNLIKELY(info.Length() < 2)) {
- throwArityTypeError(exceptionState, 2, info.Length());
+ throwMinimumArityTypeError(exceptionState, 2, info.Length());
return;
}
TestInterface2* impl = V8TestInterface2::toNative(info.Holder());
@@ -164,7 +164,7 @@ static void deleteNamedItemMethod(const v8::FunctionCallbackInfo<v8::Value>& inf
{
ExceptionState exceptionState(ExceptionState::ExecutionContext, "deleteNamedItem", "TestInterface2", info.Holder(), info.GetIsolate());
if (UNLIKELY(info.Length() < 1)) {
- throwArityTypeError(exceptionState, 1, info.Length());
+ throwMinimumArityTypeError(exceptionState, 1, info.Length());
return;
}
TestInterface2* impl = V8TestInterface2::toNative(info.Holder());
« no previous file with comments | « Source/bindings/tests/results/V8TestInterface.cpp ('k') | Source/bindings/tests/results/V8TestInterfaceConstructor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698