| Index: Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.cpp
|
| diff --git a/Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.cpp b/Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.cpp
|
| index c59b5a8a4aa68848dc091d6d22b555d1cef8a765..d674aa15ad8334a9b1a7586e36ec54d67d87d1e7 100644
|
| --- a/Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.cpp
|
| +++ b/Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.cpp
|
| @@ -139,9 +139,10 @@ static void V8TestInterfaceWillBeGarbageCollectedConstructorCallback(const v8::F
|
| return;
|
| }
|
|
|
| - Document* documentPtr = currentDOMWindow(isolate)->document();
|
| + ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate());
|
| +
|
| + Document* documentPtr = toDocument(executionContext);
|
| ASSERT(documentPtr);
|
| - Document& document = *documentPtr;
|
|
|
| // Make sure the document is added to the DOM Node map. Otherwise, the TestInterfaceWillBeGarbageCollected instance
|
| // may end up being the only node in the map and get garbage-collected prematurely.
|
|
|