Index: Source/WebCore/bindings/v8/custom/V8AudioNodeCustom.cpp |
=================================================================== |
--- Source/WebCore/bindings/v8/custom/V8AudioNodeCustom.cpp (revision 93818) |
+++ Source/WebCore/bindings/v8/custom/V8AudioNodeCustom.cpp (working copy) |
@@ -41,7 +41,10 @@ |
if (args.Length() < 1) |
return throwError("Not enough arguments", V8Proxy::SyntaxError); |
- AudioNode* destinationNode = toNative(args[0]->ToObject()); |
+ AudioNode* destinationNode = 0; |
+ if (V8AudioNode::HasInstance(args[0])) |
+ destinationNode = toNative(args[0]->ToObject()); |
+ |
if (!destinationNode) |
return throwError("Invalid destination node", V8Proxy::SyntaxError); |