Index: Source/bindings/tests/results/V8TestException.cpp |
diff --git a/Source/bindings/tests/results/V8TestException.cpp b/Source/bindings/tests/results/V8TestException.cpp |
index 7e13a332968e81721dbd594de8be7c78d7fe0e60..fa56d97d98f401715d07b520cccc3847f8b02fc2 100644 |
--- a/Source/bindings/tests/results/V8TestException.cpp |
+++ b/Source/bindings/tests/results/V8TestException.cpp |
@@ -114,16 +114,7 @@ static void configureV8TestExceptionTemplate(v8::Handle<v8::FunctionTemplate> fu |
v8::Handle<v8::FunctionTemplate> V8TestException::domTemplate(v8::Isolate* isolate) |
{ |
- V8PerIsolateData* data = V8PerIsolateData::from(isolate); |
- v8::Local<v8::FunctionTemplate> result = data->existingDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo)); |
- if (!result.IsEmpty()) |
- return result; |
- |
- TRACE_EVENT_SCOPED_SAMPLING_STATE("Blink", "BuildDOMTemplate"); |
- result = v8::FunctionTemplate::New(isolate, V8ObjectConstructor::isValidConstructorMode); |
- configureV8TestExceptionTemplate(result, isolate); |
- data->setDOMTemplate(const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), result); |
- return result; |
+ return V8DOMConfiguration::domClassTemplate(isolate, const_cast<WrapperTypeInfo*>(&wrapperTypeInfo), configureV8TestExceptionTemplate); |
} |
bool V8TestException::hasInstance(v8::Handle<v8::Value> v8Value, v8::Isolate* isolate) |