Index: Source/bindings/v8/V8Binding.cpp |
diff --git a/Source/bindings/v8/V8Binding.cpp b/Source/bindings/v8/V8Binding.cpp |
index 33727d87e9d721e6535f7b15daf130df6bcb9828..6e04b2f7ac7d6456b641e140e2e5a9c624374719 100644 |
--- a/Source/bindings/v8/V8Binding.cpp |
+++ b/Source/bindings/v8/V8Binding.cpp |
@@ -734,4 +734,18 @@ v8::Isolate* toIsolate(LocalFrame* frame) |
return frame->script().isolate(); |
} |
+PassOwnPtr<V8BindingTestScope> V8BindingTestScope::create(v8::Isolate* isolate) |
+{ |
+ return adoptPtr(new V8BindingTestScope(isolate)); |
+} |
+ |
+V8BindingTestScope::V8BindingTestScope(v8::Isolate* isolate) |
+ : m_handleScope(isolate) |
+ , m_context(v8::Context::New(isolate)) |
+ , m_contextScope(m_context) |
+ , m_world(DOMWrapperWorld::create()) |
+ , m_perContextData(V8PerContextData::create(m_context, m_world.get())) |
+{ |
+} |
+ |
} // namespace WebCore |