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

Unified Diff: Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp

Issue 751223003: IDL: Support runtime enabled overloads affecting Function.length (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: eliminate "info.Length() < 0" branches Created 6 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/bindings/tests/results/modules/V8TestInterface5.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
diff --git a/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp b/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
index 1480357da44a814fb0873bb54b11fd89ad1e96d8..09e550004e1bf5508ed8ada336ea2029031f6149 100644
--- a/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
+++ b/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
@@ -57,9 +57,7 @@ static void voidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8::V
}
break;
default:
- exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, info.Length()));
- exceptionState.throwIfNeeded();
- return;
+ break;
}
exceptionState.throwTypeError("No function was found that matched the signature provided.");
exceptionState.throwIfNeeded();
@@ -87,9 +85,7 @@ static void staticVoidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo
}
break;
default:
- exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, info.Length()));
- exceptionState.throwIfNeeded();
- return;
+ break;
}
exceptionState.throwTypeError("No function was found that matched the signature provided.");
exceptionState.throwIfNeeded();
@@ -122,9 +118,7 @@ static void promiseMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8
}
break;
default:
- exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, info.Length()));
- v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value());
- return;
+ break;
}
exceptionState.throwTypeError("No function was found that matched the signature provided.");
v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value());
@@ -153,9 +147,7 @@ static void staticPromiseMethodPartialOverloadMethod(const v8::FunctionCallbackI
}
break;
default:
- exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, info.Length()));
- v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value());
- return;
+ break;
}
exceptionState.throwTypeError("No function was found that matched the signature provided.");
v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value());
@@ -202,9 +194,7 @@ static void partial2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
}
break;
default:
- exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, info.Length()));
- exceptionState.throwIfNeeded();
- return;
+ break;
}
exceptionState.throwTypeError("No function was found that matched the signature provided.");
exceptionState.throwIfNeeded();
@@ -232,9 +222,7 @@ static void partial2StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va
}
break;
default:
- exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, info.Length()));
- exceptionState.throwIfNeeded();
- return;
+ break;
}
exceptionState.throwTypeError("No function was found that matched the signature provided.");
exceptionState.throwIfNeeded();
« no previous file with comments | « Source/bindings/tests/results/modules/V8TestInterface5.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698