Index: Source/bindings/tests/results/V8TestEventConstructor.cpp |
diff --git a/Source/bindings/tests/results/V8TestEventConstructor.cpp b/Source/bindings/tests/results/V8TestEventConstructor.cpp |
index 006d990678e6cf69a2b2b12dd352c96dd4b0f937..2409bebb73f6b04001ef7cce23dd313f0f14e2be 100644 |
--- a/Source/bindings/tests/results/V8TestEventConstructor.cpp |
+++ b/Source/bindings/tests/results/V8TestEventConstructor.cpp |
@@ -26,6 +26,7 @@ |
#include "Dictionary.h" |
#include "Frame.h" |
#include "RuntimeEnabledFeatures.h" |
+#include "ScriptController.h" |
#include "V8Binding.h" |
#include "V8DOMWrapper.h" |
#include <wtf/UnusedParam.h> |
@@ -147,6 +148,7 @@ static v8::Persistent<v8::FunctionTemplate> ConfigureV8TestEventConstructorTempl |
0, 0, isolate, currentWorldType); |
UNUSED_PARAM(defaultSignature); // In some cases, it will not be used. |
desc->SetCallHandler(V8TestEventConstructor::constructorCallback); |
+ desc->SetLength(1); |
// Custom toString template |
desc->Set(v8::String::NewSymbol("toString"), V8PerIsolateData::current()->toStringTemplate()); |