| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestException.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestException.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestException.cpp
|
| index 06ecd87d187351c697a6fc0af2b0f42ec8918d14..57790f60f6633367e24f67fa161ea549d4a952ec 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestException.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestException.cpp
|
| @@ -115,26 +115,25 @@ void V8TestException::constructorCallback(const v8::FunctionCallbackInfo<v8::Val
|
| TestExceptionV8Internal::constructor(info);
|
| }
|
|
|
| -static void installV8TestExceptionTemplate(v8::Local<v8::FunctionTemplate> functionTemplate, v8::Isolate* isolate)
|
| +static void installV8TestExceptionTemplate(v8::Local<v8::FunctionTemplate> interfaceTemplate, v8::Isolate* isolate)
|
| {
|
| - functionTemplate->ReadOnlyPrototype();
|
| -
|
| - v8::Local<v8::Signature> defaultSignature;
|
| - defaultSignature = V8DOMConfiguration::installDOMClassTemplate(isolate, functionTemplate, V8TestException::wrapperTypeInfo.interfaceName, v8::Local<v8::FunctionTemplate>(), V8TestException::internalFieldCount,
|
| - 0, 0,
|
| - V8TestExceptionAccessors, WTF_ARRAY_LENGTH(V8TestExceptionAccessors),
|
| - V8TestExceptionMethods, WTF_ARRAY_LENGTH(V8TestExceptionMethods));
|
| - functionTemplate->SetCallHandler(V8TestException::constructorCallback);
|
| - functionTemplate->SetLength(1);
|
| - v8::Local<v8::ObjectTemplate> instanceTemplate = functionTemplate->InstanceTemplate();
|
| + // Initialize the interface object's template.
|
| + V8DOMConfiguration::initializeDOMInterfaceTemplate(isolate, interfaceTemplate, V8TestException::wrapperTypeInfo.interfaceName, v8::Local<v8::FunctionTemplate>(), V8TestException::internalFieldCount);
|
| + interfaceTemplate->SetCallHandler(V8TestException::constructorCallback);
|
| + interfaceTemplate->SetLength(1);
|
| + v8::Local<v8::Signature> signature = v8::Signature::New(isolate, interfaceTemplate);
|
| + ALLOW_UNUSED_LOCAL(signature);
|
| + v8::Local<v8::ObjectTemplate> instanceTemplate = interfaceTemplate->InstanceTemplate();
|
| ALLOW_UNUSED_LOCAL(instanceTemplate);
|
| - v8::Local<v8::ObjectTemplate> prototypeTemplate = functionTemplate->PrototypeTemplate();
|
| + v8::Local<v8::ObjectTemplate> prototypeTemplate = interfaceTemplate->PrototypeTemplate();
|
| ALLOW_UNUSED_LOCAL(prototypeTemplate);
|
| - V8DOMConfiguration::setClassString(isolate, prototypeTemplate, V8TestException::wrapperTypeInfo.interfaceName);
|
| + // Register DOM constants, attributes and operations.
|
| const V8DOMConfiguration::ConstantConfiguration V8TestExceptionConstants[] = {
|
| {"UNSIGNED_SHORT_CONSTANT", 1, 0, V8DOMConfiguration::ConstantTypeUnsignedShort},
|
| };
|
| - V8DOMConfiguration::installConstants(isolate, functionTemplate, prototypeTemplate, V8TestExceptionConstants, WTF_ARRAY_LENGTH(V8TestExceptionConstants));
|
| + V8DOMConfiguration::installConstants(isolate, interfaceTemplate, prototypeTemplate, V8TestExceptionConstants, WTF_ARRAY_LENGTH(V8TestExceptionConstants));
|
| + V8DOMConfiguration::installAccessors(isolate, instanceTemplate, prototypeTemplate, interfaceTemplate, signature, V8TestExceptionAccessors, WTF_ARRAY_LENGTH(V8TestExceptionAccessors));
|
| + V8DOMConfiguration::installMethods(isolate, instanceTemplate, prototypeTemplate, interfaceTemplate, signature, V8TestExceptionMethods, WTF_ARRAY_LENGTH(V8TestExceptionMethods));
|
| }
|
|
|
| v8::Local<v8::FunctionTemplate> V8TestException::domTemplate(v8::Isolate* isolate)
|
|
|