Commit eee1c27d authored by bburg@apple.com's avatar bburg@apple.com

Web Inspector: add more context to Object.addEventListener assertions

https://bugs.webkit.org/show_bug.cgi?id=127125

Reviewed by Joseph Pecoraro.

Log invalid event type and listener parameters, and log the other
parameters so the callsite is easier to figure out.

* UserInterface/Object.js:
(WebInspector.Object.addEventListener):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@162149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 28f5727e
2014-01-16 Brian Burg <bburg@apple.com>
Web Inspector: add more context to Object.addEventListener assertions
https://bugs.webkit.org/show_bug.cgi?id=127125
Reviewed by Joseph Pecoraro.
Log invalid event type and listener parameters, and log the other
parameters so the callsite is easier to figure out.
* UserInterface/Object.js:
(WebInspector.Object.addEventListener):
2014-01-16 Brian Burg <bburg@apple.com>
Web Inspector: CallFrame is missing saveIdentityToCookie, or should be excluded
......
......@@ -55,11 +55,11 @@ WebInspector.Object.addEventListener = function(eventType, listener, thisObject)
{
thisObject = thisObject || null;
console.assert(eventType);
console.assert(eventType, "Object.addEventListener: invalid event type ", eventType, "(listener: ", listener, "thisObject: ", thisObject, ")");
if (!eventType)
return;
console.assert(listener);
console.assert(listener, "Object.addEventListener: invalid listener ", listener, "(event type: ", eventType, "thisObject: ", thisObject, ")");
if (!listener)
return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment