Chromium Code Reviews

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: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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..0f7e3dedc3d254398b69083776fcce609ecdcf85 100644
--- a/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
+++ b/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
@@ -57,6 +57,9 @@ static void voidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8::V
}
break;
default:
+ break;
+ }
+ if (info.Length() < 0) {
exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, info.Length()));
exceptionState.throwIfNeeded();
return;
@@ -87,6 +90,9 @@ static void staticVoidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo
}
break;
default:
+ break;
+ }
+ if (info.Length() < 0) {
exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, info.Length()));
exceptionState.throwIfNeeded();
return;
@@ -122,6 +128,9 @@ static void promiseMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8
}
break;
default:
+ break;
+ }
+ if (info.Length() < 0) {
exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, info.Length()));
v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value());
return;
@@ -153,6 +162,9 @@ static void staticPromiseMethodPartialOverloadMethod(const v8::FunctionCallbackI
}
break;
default:
+ break;
+ }
+ if (info.Length() < 0) {
exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, info.Length()));
v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIsolate())).v8Value());
return;
@@ -202,6 +214,9 @@ static void partial2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
}
break;
default:
+ break;
+ }
+ if (info.Length() < 0) {
exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, info.Length()));
exceptionState.throwIfNeeded();
return;
@@ -232,6 +247,9 @@ static void partial2StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va
}
break;
default:
+ break;
+ }
+ if (info.Length() < 0) {
exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(0, info.Length()));
exceptionState.throwIfNeeded();
return;

Powered by Google App Engine