| Index: Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.cpp
|
| diff --git a/Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.cpp b/Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.cpp
|
| index e06f83c9b23f410c744741666df40113024a5ab1..57df20d212c30c8a4355605604b4376e94d7300f 100644
|
| --- a/Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.cpp
|
| +++ b/Source/bindings/tests/results/V8TestInterfaceWillBeGarbageCollected.cpp
|
| @@ -139,13 +139,7 @@ static void V8TestInterfaceWillBeGarbageCollectedConstructorCallback(const v8::F
|
| return;
|
| }
|
|
|
| - Document* documentPtr = currentDOMWindow(isolate)->document();
|
| - 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.
|
| - toV8(documentPtr, info.Holder(), isolate);
|
| + Document& document = *toDocument(currentExecutionContext(isolate));
|
|
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwMinimumArityTypeErrorForConstructor("TestInterfaceWillBeGarbageCollected", 1, info.Length(), info.GetIsolate());
|
|
|