Index: Source/bindings/tests/results/V8TestInterfaceConstructor.cpp |
diff --git a/Source/bindings/tests/results/V8TestInterfaceConstructor.cpp b/Source/bindings/tests/results/V8TestInterfaceConstructor.cpp |
index cc0955ff38fc4395d8188c6cb668e97db3ae7e7d..06f016b15ad98ca9da7584662d64d9d7fd5a846e 100644 |
--- a/Source/bindings/tests/results/V8TestInterfaceConstructor.cpp |
+++ b/Source/bindings/tests/results/V8TestInterfaceConstructor.cpp |
@@ -98,7 +98,7 @@ static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
{ |
v8::Isolate* isolate = info.GetIsolate(); |
ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInterfaceConstructor", info.Holder(), isolate); |
- switch (info.Length()) { |
+ switch (std::min(8, info.Length())) { |
case 0: |
if (true) { |
TestInterfaceConstructorV8Internal::constructor1(info); |