Index: Source/bindings/tests/results/V8TestInterfaceConstructor2.cpp |
diff --git a/Source/bindings/tests/results/V8TestInterfaceConstructor2.cpp b/Source/bindings/tests/results/V8TestInterfaceConstructor2.cpp |
index c72603d4b9cd3dfcb25389abaab70883fb4c8cac..c5ff0e3334e3b85d96189638fe5f226cbfc3a8e8 100644 |
--- a/Source/bindings/tests/results/V8TestInterfaceConstructor2.cpp |
+++ b/Source/bindings/tests/results/V8TestInterfaceConstructor2.cpp |
@@ -104,7 +104,7 @@ static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
v8::Isolate* isolate = info.GetIsolate(); |
ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInterfaceConstructor2", info.Holder(), isolate); |
- switch (info.Length()) { |
+ switch (std::min(6, info.Length())) { |
case 1: |
if (info[0]->IsObject()) { |
TestInterfaceConstructor2V8Internal::constructor2(info); |