| Index: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp b/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp
|
| index d54a317f166b9bb66bbb2940205ef68ea2b1fb0b..3c79846024c901dc538446012fbf55498863f941 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp
|
| @@ -19,6 +19,7 @@
|
| #include "bindings/modules/v8/V8TestInterface5.h"
|
| #include "core/dom/ContextFeatures.h"
|
| #include "core/dom/Document.h"
|
| +#include "core/experiments/Experiments.h"
|
| #include "platform/RuntimeEnabledFeatures.h"
|
| #include "platform/TraceEvent.h"
|
| #include "wtf/GetPtr.h"
|
| @@ -962,11 +963,13 @@ static void installV8TestInterface5Template(v8::Local<v8::FunctionTemplate> func
|
| v8::Local<v8::Signature> defaultSignature;
|
| if (!RuntimeEnabledFeatures::featureNameEnabled())
|
| defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, "TestInterface5", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterface5::internalFieldCount, 0, 0, 0, 0, 0, 0);
|
| - else
|
| - defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, "TestInterface5", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterface5::internalFieldCount,
|
| - V8TestInterface5Attributes, WTF_ARRAY_LENGTH(V8TestInterface5Attributes),
|
| - V8TestInterface5Accessors, WTF_ARRAY_LENGTH(V8TestInterface5Accessors),
|
| - V8TestInterface5Methods, WTF_ARRAY_LENGTH(V8TestInterface5Methods));
|
| + else {
|
| + defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, "TestInterface5", V8TestInterfaceEmpty::domTemplate(isolate), V8TestInterface5::internalFieldCount,
|
| + V8TestInterface5Attributes, WTF_ARRAY_LENGTH(V8TestInterface5Attributes),
|
| + V8TestInterface5Accessors, WTF_ARRAY_LENGTH(V8TestInterface5Accessors),
|
| + V8TestInterface5Methods, WTF_ARRAY_LENGTH(V8TestInterface5Methods));
|
| + }
|
| +
|
| v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceTemplate();
|
| ALLOW_UNUSED_LOCAL(instanceTemplate);
|
| v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->PrototypeTemplate();
|
| @@ -976,6 +979,8 @@ static void installV8TestInterface5Template(v8::Local<v8::FunctionTemplate> func
|
| {"CONST_JAVASCRIPT", 1, 0, V8DOMConfiguration::ConstantTypeShort},
|
| };
|
| V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTemplate, V8TestInterface5Constants, WTF_ARRAY_LENGTH(V8TestInterface5Constants));
|
| + ExecutionContext* ec = currentExecutionContext(isolate);
|
| + ALLOW_UNUSED_LOCAL(ec);
|
| v8::IndexedPropertyHandlerConfiguration indexedPropertyHandlerConfig(TestInterface5ImplementationV8Internal::indexedPropertyGetterCallback, TestInterface5ImplementationV8Internal::indexedPropertySetterCallback, 0, TestInterface5ImplementationV8Internal::indexedPropertyDeleterCallback, indexedPropertyEnumerator<TestInterface5Implementation>, v8::Local<v8::Value>(), v8::PropertyHandlerFlags::kNone);
|
| instanceTemplate->SetHandler(indexedPropertyHandlerConfig);
|
| v8::NamedPropertyHandlerConfiguration namedPropertyHandlerConfig(TestInterface5ImplementationV8Internal::namedPropertyGetterCallback, TestInterface5ImplementationV8Internal::namedPropertySetterCallback, TestInterface5ImplementationV8Internal::namedPropertyQueryCallback, TestInterface5ImplementationV8Internal::namedPropertyDeleterCallback, TestInterface5ImplementationV8Internal::namedPropertyEnumeratorCallback, v8::Local<v8::Value>(), static_cast<v8::PropertyHandlerFlags>(int(v8::PropertyHandlerFlags::kOnlyInterceptStrings) | int(v8::PropertyHandlerFlags::kNonMasking)));
|
|
|