| Index: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp b/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
|
| index 5d50486dbd5718f48e7f89529b9e353f82849f7c..0558f38441b45902ce8f1a4c48ae4a0adfcc9727 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
|
| @@ -18,7 +18,9 @@
|
| #include "bindings/tests/idls/modules/TestPartialInterfaceImplementation3.h"
|
| #include "core/dom/ContextFeatures.h"
|
| #include "core/dom/Document.h"
|
| +#include "core/experiments/ExperimentalFeatures.h"
|
| #include "core/frame/LocalFrame.h"
|
| +#include "core/inspector/ConsoleMessage.h"
|
| #include "platform/RuntimeEnabledFeatures.h"
|
| #include "platform/ScriptForbiddenScope.h"
|
| #include "platform/TraceEvent.h"
|
| @@ -245,7 +247,13 @@ static void partialVoidTestEnumModulesArgMethodMethod(const v8::FunctionCallback
|
| static void partialVoidTestEnumModulesArgMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
|
| - TestInterfaceImplementationPartialV8Internal::partialVoidTestEnumModulesArgMethodMethod(info);
|
| +String errorMessage;
|
| + if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) {
|
| + v8SetReturnValue(info, v8::Undefined(info.GetIsolate()));
|
| + Document& document = *toDocument(currentExecutionContext(info.GetIsolate()));
|
| + document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage));
|
| + return;
|
| + } TestInterfaceImplementationPartialV8Internal::partialVoidTestEnumModulesArgMethodMethod(info);
|
| TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
|
| }
|
|
|
| @@ -289,7 +297,13 @@ static void unscopeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value
|
| static void unscopeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
|
| {
|
| TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMMethod");
|
| - TestInterfaceImplementationPartialV8Internal::unscopeableVoidMethodMethod(info);
|
| +String errorMessage;
|
| + if (!ExperimentalFeatures::featureNameEnabled(currentExecutionContext(info.GetIsolate()), errorMessage)) {
|
| + v8SetReturnValue(info, v8::Undefined(info.GetIsolate()));
|
| + Document& document = *toDocument(currentExecutionContext(info.GetIsolate()));
|
| + document.addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, errorMessage));
|
| + return;
|
| + } TestInterfaceImplementationPartialV8Internal::unscopeableVoidMethodMethod(info);
|
| TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
|
| }
|
|
|
| @@ -305,13 +319,10 @@ void V8TestInterfacePartial::installV8TestInterfaceTemplate(v8::Local<v8::Functi
|
| V8TestInterface::installV8TestInterfaceTemplate(functionTemplate, isolate);
|
|
|
| v8::Local<v8::Signature> defaultSignature;
|
| - if (!RuntimeEnabledFeatures::featureNameEnabled())
|
| - defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, "TestInterface", v8::Local<v8::FunctionTemplate>(), V8TestInterface::internalFieldCount, 0, 0, 0, 0, 0, 0);
|
| - else
|
| - defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, "TestInterface", v8::Local<v8::FunctionTemplate>(), V8TestInterface::internalFieldCount,
|
| - 0, 0,
|
| - 0, 0,
|
| - V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods));
|
| + defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, "TestInterface", v8::Local<v8::FunctionTemplate>(), V8TestInterface::internalFieldCount,
|
| + 0, 0,
|
| + 0, 0,
|
| + V8TestInterfaceMethods, WTF_ARRAY_LENGTH(V8TestInterfaceMethods));
|
| v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceTemplate();
|
| ALLOW_UNUSED_LOCAL(instanceTemplate);
|
| v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->PrototypeTemplate();
|
|
|