Skip to content

Commit

Permalink
Adds support for console.dir
Browse files Browse the repository at this point in the history
  • Loading branch information
c4milo committed May 3, 2012
1 parent dde1ba6 commit e7c2337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/console.js
Expand Up @@ -6,7 +6,7 @@ function ConsoleAgent(sendEvent) {
this.enabled = false; this.enabled = false;
this.messages = []; this.messages = [];


['log', 'warn', 'info', 'error'].forEach(function(level) { ['log', 'warn', 'info', 'error', 'dir'].forEach(function(level) {
var ref = console[level]; var ref = console[level];
console[level] = function() { console[level] = function() {
ref.apply(this, arguments); ref.apply(this, arguments);
Expand Down

0 comments on commit e7c2337

Please sign in to comment.