Index: Source/bindings/tests/results/V8TestCallback.cpp |
diff --git a/Source/bindings/tests/results/V8TestCallback.cpp b/Source/bindings/tests/results/V8TestCallback.cpp |
index 4ce23f6495ae56ddc2152bcb185a38a9ffcb3bf7..140a5d057c0976bba8ecd6be4dc607c3caa7cc80 100644 |
--- a/Source/bindings/tests/results/V8TestCallback.cpp |
+++ b/Source/bindings/tests/results/V8TestCallback.cpp |
@@ -38,7 +38,7 @@ namespace WebCore { |
V8TestCallback::V8TestCallback(v8::Handle<v8::Object> callback, ScriptExecutionContext* context) |
: ActiveDOMCallback(context) |
, m_callback(callback) |
- , m_world(context->isDocument() ? DOMWrapperWorld::isolatedWorld(v8::Context::GetCurrent()) : 0) |
+ , m_world(DOMWrapperWorld::current(context)) |
{ |
} |