Index: Source/bindings/tests/results/V8TestInterfaceEventTarget.cpp |
diff --git a/Source/bindings/tests/results/V8TestInterfaceEventTarget.cpp b/Source/bindings/tests/results/V8TestInterfaceEventTarget.cpp |
index 36b77f0373ac37bf39f650dda9a2b9d3d2cb47b0..6ca223dc2270501b22edc9d6a558347c0e2a4978 100644 |
--- a/Source/bindings/tests/results/V8TestInterfaceEventTarget.cpp |
+++ b/Source/bindings/tests/results/V8TestInterfaceEventTarget.cpp |
@@ -60,13 +60,7 @@ static void V8TestInterfaceEventTargetConstructorCallback(const v8::FunctionCall |
return; |
} |
- Document* documentPtr = currentDOMWindow(isolate)->document(); |
- ASSERT(documentPtr); |
- Document& document = *documentPtr; |
- |
- // Make sure the document is added to the DOM Node map. Otherwise, the TestInterfaceEventTarget instance |
- // may end up being the only node in the map and get garbage-collected prematurely. |
- toV8(documentPtr, info.Holder(), isolate); |
+ Document& document = *toDocument(currentExecutionContext(isolate)); |
RefPtrWillBeRawPtr<TestInterfaceEventTarget> impl = TestInterfaceEventTarget::createForJSConstructor(document); |