From e7c2337facc980d7fe2b7c9d82bd6e9c6d07050d Mon Sep 17 00:00:00 2001 From: Camilo Aguilar Date: Thu, 3 May 2012 13:32:34 -0400 Subject: [PATCH] Adds support for console.dir --- lib/console.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/console.js b/lib/console.js index cb38fa5..3445f9a 100644 --- a/lib/console.js +++ b/lib/console.js @@ -6,7 +6,7 @@ function ConsoleAgent(sendEvent) { this.enabled = false; this.messages = []; - ['log', 'warn', 'info', 'error'].forEach(function(level) { + ['log', 'warn', 'info', 'error', 'dir'].forEach(function(level) { var ref = console[level]; console[level] = function() { ref.apply(this, arguments);