diff options
Diffstat (limited to 'Source/WebCore/bindings/scripts/test/V8/V8TestNamedConstructor.cpp')
-rw-r--r-- | Source/WebCore/bindings/scripts/test/V8/V8TestNamedConstructor.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/WebCore/bindings/scripts/test/V8/V8TestNamedConstructor.cpp b/Source/WebCore/bindings/scripts/test/V8/V8TestNamedConstructor.cpp index 6e262d43c..162a9a5dc 100644 --- a/Source/WebCore/bindings/scripts/test/V8/V8TestNamedConstructor.cpp +++ b/Source/WebCore/bindings/scripts/test/V8/V8TestNamedConstructor.cpp @@ -28,7 +28,6 @@ #include "RuntimeEnabledFeatures.h" #include "V8Binding.h" #include "V8DOMWrapper.h" -#include "V8IsolatedContext.h" #include <wtf/UnusedParam.h> namespace WebCore { @@ -53,11 +52,7 @@ static v8::Handle<v8::Value> V8TestNamedConstructorConstructorCallback(const v8: if (ConstructorMode::current() == ConstructorMode::WrapExistingObject) return args.Holder(); - Frame* frame = currentFrame(BindingState::instance()); - if (!frame) - return throwError(ReferenceError, "TestNamedConstructor constructor associated frame is unavailable", args.GetIsolate()); - - Document* document = frame->document(); + Document* document = currentDocument(BindingState::instance()); // Make sure the document is added to the DOM Node map. Otherwise, the TestNamedConstructor instance // may end up being the only node in the map and get garbage-collected prematurely. |