Index: Source/core/inspector/InjectedScript.cpp |
diff --git a/Source/core/inspector/InjectedScript.cpp b/Source/core/inspector/InjectedScript.cpp |
index c6c60548a54dcdbbea5484f9db9625c0ce8680f7..46adf5a9ddd000b92c75ca7ecc251e50be41c8d6 100644 |
--- a/Source/core/inspector/InjectedScript.cpp |
+++ b/Source/core/inspector/InjectedScript.cpp |
@@ -334,6 +334,18 @@ void InjectedScript::releaseObject(const String& objectId) |
m_native->unbind(boundId); |
} |
+ScriptValue InjectedScript::librariesEventListeners(const String& objectId) |
+{ |
+ ScriptFunctionCall function(injectedScriptObject(), "librariesEventListenersByObjectId"); |
+ function.appendArgument(objectId); |
+ bool hadException = false; |
+ ScriptValue result = callFunctionWithEvalEnabled(function, hadException); |
+ if (!hadException) |
+ return result; |
+ return ScriptValue(); |
+} |
+ |
+ |
PassRefPtr<Array<CallFrame>> InjectedScript::wrapCallFrames(v8::Local<v8::Object> callFrames, int asyncOrdinal) |
{ |
ASSERT(!isEmpty()); |