Index: Source/bindings/tests/results/V8TestObject.cpp |
diff --git a/Source/bindings/tests/results/V8TestObject.cpp b/Source/bindings/tests/results/V8TestObject.cpp |
index ec46f54ba915cc077149b2f08fcfa3217eaf069b..b519adff49487da67777fd86b7cd91ae5d263708 100644 |
--- a/Source/bindings/tests/results/V8TestObject.cpp |
+++ b/Source/bindings/tests/results/V8TestObject.cpp |
@@ -6390,7 +6390,7 @@ static void overloadedMethodAMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
{ |
v8::Isolate* isolate = info.GetIsolate(); |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodA", "TestObject", info.Holder(), isolate); |
- switch (info.Length()) { |
+ switch (std::min(2, info.Length())) { |
case 1: |
if (true) { |
overloadedMethodA1Method(info); |
@@ -6444,7 +6444,7 @@ static void overloadedMethodBMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
{ |
v8::Isolate* isolate = info.GetIsolate(); |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodB", "TestObject", info.Holder(), isolate); |
- switch (info.Length()) { |
+ switch (std::min(2, info.Length())) { |
case 1: |
if (info[0]->IsNumber()) { |
overloadedMethodB1Method(info); |
@@ -6496,7 +6496,7 @@ static void overloadedMethodCMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
{ |
v8::Isolate* isolate = info.GetIsolate(); |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodC", "TestObject", info.Holder(), isolate); |
- switch (info.Length()) { |
+ switch (std::min(1, info.Length())) { |
case 1: |
if (V8TestInterfaceEmpty::hasInstance(info[0], isolate)) { |
overloadedMethodC2Method(info); |
@@ -6542,7 +6542,7 @@ static void overloadedMethodDMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
{ |
v8::Isolate* isolate = info.GetIsolate(); |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodD", "TestObject", info.Holder(), isolate); |
- switch (info.Length()) { |
+ switch (std::min(1, info.Length())) { |
case 1: |
if (info[0]->IsArray()) { |
overloadedMethodD2Method(info); |
@@ -6588,7 +6588,7 @@ static void overloadedMethodEMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
{ |
v8::Isolate* isolate = info.GetIsolate(); |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodE", "TestObject", info.Holder(), isolate); |
- switch (info.Length()) { |
+ switch (std::min(1, info.Length())) { |
case 1: |
if (isUndefinedOrNull(info[0])) { |
overloadedMethodE2Method(info); |
@@ -6641,7 +6641,7 @@ static void overloadedMethodFMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
{ |
v8::Isolate* isolate = info.GetIsolate(); |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodF", "TestObject", info.Holder(), isolate); |
- switch (info.Length()) { |
+ switch (std::min(1, info.Length())) { |
case 0: |
if (true) { |
overloadedMethodF1Method(info); |
@@ -6697,7 +6697,7 @@ static void overloadedMethodGMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
{ |
v8::Isolate* isolate = info.GetIsolate(); |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodG", "TestObject", info.Holder(), isolate); |
- switch (info.Length()) { |
+ switch (std::min(1, info.Length())) { |
case 1: |
if (isUndefinedOrNull(info[0])) { |
overloadedMethodG2Method(info); |
@@ -6746,7 +6746,7 @@ static void overloadedMethodHMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
{ |
v8::Isolate* isolate = info.GetIsolate(); |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodH", "TestObject", info.Holder(), isolate); |
- switch (info.Length()) { |
+ switch (std::min(1, info.Length())) { |
case 1: |
if (V8TestInterface::hasInstance(info[0], isolate)) { |
overloadedMethodH1Method(info); |
@@ -6791,7 +6791,7 @@ static void overloadedMethodIMethod(const v8::FunctionCallbackInfo<v8::Value>& i |
{ |
v8::Isolate* isolate = info.GetIsolate(); |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedMethodI", "TestObject", info.Holder(), isolate); |
- switch (info.Length()) { |
+ switch (std::min(1, info.Length())) { |
case 1: |
if (info[0]->IsNumber()) { |
overloadedMethodI2Method(info); |
@@ -6842,7 +6842,7 @@ static void overloadedPerWorldBindingsMethodMethod(const v8::FunctionCallbackInf |
{ |
v8::Isolate* isolate = info.GetIsolate(); |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedPerWorldBindingsMethod", "TestObject", info.Holder(), isolate); |
- switch (info.Length()) { |
+ switch (std::min(1, info.Length())) { |
case 0: |
if (true) { |
overloadedPerWorldBindingsMethod1Method(info); |
@@ -6883,7 +6883,7 @@ static void overloadedPerWorldBindingsMethodMethodForMainWorld(const v8::Functio |
{ |
v8::Isolate* isolate = info.GetIsolate(); |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedPerWorldBindingsMethod", "TestObject", info.Holder(), isolate); |
- switch (info.Length()) { |
+ switch (std::min(1, info.Length())) { |
case 0: |
if (true) { |
overloadedPerWorldBindingsMethod1MethodForMainWorld(info); |
@@ -6931,7 +6931,7 @@ static void overloadedStaticMethodMethod(const v8::FunctionCallbackInfo<v8::Valu |
{ |
v8::Isolate* isolate = info.GetIsolate(); |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedStaticMethod", "TestObject", info.Holder(), isolate); |
- switch (info.Length()) { |
+ switch (std::min(2, info.Length())) { |
case 1: |
if (true) { |
overloadedStaticMethod1Method(info); |
@@ -7425,7 +7425,7 @@ static void DeprecateAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8: |
{ |
v8::Isolate* isolate = info.GetIsolate(); |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAsOverloadedMethod", "TestObject", info.Holder(), isolate); |
- switch (info.Length()) { |
+ switch (std::min(1, info.Length())) { |
case 0: |
if (true) { |
UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::TestFeatureA); |
@@ -7475,7 +7475,7 @@ static void DeprecateAsSameValueOverloadedMethodMethod(const v8::FunctionCallbac |
v8::Isolate* isolate = info.GetIsolate(); |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "DeprecateAsSameValueOverloadedMethod", "TestObject", info.Holder(), isolate); |
UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::TestFeature); |
- switch (info.Length()) { |
+ switch (std::min(1, info.Length())) { |
case 0: |
if (true) { |
DeprecateAsSameValueOverloadedMethod1Method(info); |
@@ -7522,7 +7522,7 @@ static void measureAsOverloadedMethodMethod(const v8::FunctionCallbackInfo<v8::V |
{ |
v8::Isolate* isolate = info.GetIsolate(); |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsOverloadedMethod", "TestObject", info.Holder(), isolate); |
- switch (info.Length()) { |
+ switch (std::min(1, info.Length())) { |
case 0: |
if (true) { |
UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeatureA); |
@@ -7572,7 +7572,7 @@ static void measureAsSameValueOverloadedMethodMethod(const v8::FunctionCallbackI |
v8::Isolate* isolate = info.GetIsolate(); |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "measureAsSameValueOverloadedMethod", "TestObject", info.Holder(), isolate); |
UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeature); |
- switch (info.Length()) { |
+ switch (std::min(1, info.Length())) { |
case 0: |
if (true) { |
measureAsSameValueOverloadedMethod1Method(info); |
@@ -7620,7 +7620,7 @@ static void deprecateAsMeasureAsSameValueOverloadedMethodMethod(const v8::Functi |
v8::Isolate* isolate = info.GetIsolate(); |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAsMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), isolate); |
UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeature); |
- switch (info.Length()) { |
+ switch (std::min(1, info.Length())) { |
case 0: |
if (true) { |
UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::TestFeatureA); |
@@ -7670,7 +7670,7 @@ static void deprecateAsSameValueMeasureAsOverloadedMethodMethod(const v8::Functi |
v8::Isolate* isolate = info.GetIsolate(); |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAsSameValueMeasureAsOverloadedMethod", "TestObject", info.Holder(), isolate); |
UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::TestFeature); |
- switch (info.Length()) { |
+ switch (std::min(1, info.Length())) { |
case 0: |
if (true) { |
UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeatureA); |
@@ -7721,7 +7721,7 @@ static void deprecateAsSameValueMeasureAsSameValueOverloadedMethodMethod(const v |
ExceptionState exceptionState(ExceptionState::ExecutionContext, "deprecateAsSameValueMeasureAsSameValueOverloadedMethod", "TestObject", info.Holder(), isolate); |
UseCounter::count(callingExecutionContext(isolate), UseCounter::TestFeatureB); |
UseCounter::countDeprecation(callingExecutionContext(isolate), UseCounter::TestFeatureA); |
- switch (info.Length()) { |
+ switch (std::min(1, info.Length())) { |
case 0: |
if (true) { |
deprecateAsSameValueMeasureAsSameValueOverloadedMethod1Method(info); |