| Index: Source/bindings/tests/results/V8TestInterfaceNamedConstructor2.cpp
|
| diff --git a/Source/bindings/tests/results/V8TestInterfaceNamedConstructor2.cpp b/Source/bindings/tests/results/V8TestInterfaceNamedConstructor2.cpp
|
| index ea7a9a97842fd847263fcf45f8c8e70a36d4a52e..d58e829bb8ec5e55674d76d79eba460305e5153f 100644
|
| --- a/Source/bindings/tests/results/V8TestInterfaceNamedConstructor2.cpp
|
| +++ b/Source/bindings/tests/results/V8TestInterfaceNamedConstructor2.cpp
|
| @@ -60,9 +60,10 @@ static void V8TestInterfaceNamedConstructor2ConstructorCallback(const v8::Functi
|
| 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 TestInterfaceNamedConstructor2 instance
|
| // may end up being the only node in the map and get garbage-collected prematurely.
|
|
|