summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/bindings/v8/custom/V8AudioContextCustom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/bindings/v8/custom/V8AudioContextCustom.cpp')
-rw-r--r--Source/WebCore/bindings/v8/custom/V8AudioContextCustom.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/Source/WebCore/bindings/v8/custom/V8AudioContextCustom.cpp b/Source/WebCore/bindings/v8/custom/V8AudioContextCustom.cpp
index 56b12dcdf..01a8ca7bd 100644
--- a/Source/WebCore/bindings/v8/custom/V8AudioContextCustom.cpp
+++ b/Source/WebCore/bindings/v8/custom/V8AudioContextCustom.cpp
@@ -49,13 +49,7 @@ v8::Handle<v8::Value> V8AudioContext::constructorCallback(const v8::Arguments& a
if (ConstructorMode::current() == ConstructorMode::WrapExistingObject)
return args.Holder();
- Frame* frame = currentFrame(BindingState::instance());
- if (!frame)
- return throwError(ReferenceError, "AudioContext constructor associated frame is unavailable", args.GetIsolate());
-
- Document* document = frame->document();
- if (!document)
- return throwError(ReferenceError, "AudioContext constructor associated document is unavailable", args.GetIsolate());
+ Document* document = currentDocument(BindingState::instance());
RefPtr<AudioContext> audioContext;