Index: Source/core/testing/v8/WebCoreTestSupport.cpp |
diff --git a/Source/core/testing/v8/WebCoreTestSupport.cpp b/Source/core/testing/v8/WebCoreTestSupport.cpp |
index b675a080354f5043cd76f2763857df85855c03f6..17cac5e093da930486c9883945d80937dcc76a10 100644 |
--- a/Source/core/testing/v8/WebCoreTestSupport.cpp |
+++ b/Source/core/testing/v8/WebCoreTestSupport.cpp |
@@ -43,7 +43,7 @@ v8::Local<v8::Value> createInternalsObject(v8::Local<v8::Context> context) |
v8::Local<v8::Object> global = scriptState->context()->Global(); |
ExecutionContext* executionContext = scriptState->executionContext(); |
if (executionContext->isDocument()) |
- return toV8(Internals::create(toDocument(executionContext)), global, scriptState->isolate()); |
+ return toV8(Internals::create(scriptState), global, scriptState->isolate()); |
return v8::Local<v8::Value>(); |
} |