| Index: Source/bindings/tests/results/V8TestInterfaceNamedConstructor2.cpp
|
| diff --git a/Source/bindings/tests/results/V8TestInterfaceNamedConstructor2.cpp b/Source/bindings/tests/results/V8TestInterfaceNamedConstructor2.cpp
|
| index b319afa71ea9499676cdf0e9d88e4fd88b535ec2..0381309c859e177de78148a5c990339c228868c8 100644
|
| --- a/Source/bindings/tests/results/V8TestInterfaceNamedConstructor2.cpp
|
| +++ b/Source/bindings/tests/results/V8TestInterfaceNamedConstructor2.cpp
|
| @@ -60,13 +60,7 @@ static void V8TestInterfaceNamedConstructor2ConstructorCallback(const v8::Functi
|
| return;
|
| }
|
|
|
| - Document* documentPtr = currentDOMWindow(isolate)->document();
|
| - 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.
|
| - toV8(documentPtr, info.Holder(), isolate);
|
| + Document& document = *toDocument(currentExecutionContext(isolate));
|
|
|
| if (UNLIKELY(info.Length() < 1)) {
|
| throwMinimumArityTypeErrorForConstructor("TestInterfaceNamedConstructor2", 1, info.Length(), info.GetIsolate());
|
|
|