Skip to content
Browse files

Fix for DFL-2596, console.group() throws.

  • Loading branch information...
1 parent 23159ea commit 218fecf729496647973c27ef98852cdd9534bee9 @chriskr chriskr committed Oct 19, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/repl/repl_service.js
View
6 src/repl/repl_service.js
@@ -235,7 +235,11 @@ cls.ReplService = function(view, data)
this._handle_group = function(msg, collapsed)
{
const VALUE = 0, VALUELIST = 2;
- this._data.add_output_groupstart({name: msg[VALUELIST][0][VALUE],
+ var group_name = msg[VALUELIST] &&
+ msg[VALUELIST][0] &&
+ msg[VALUELIST][0][VALUE] ||
+ "";
+ this._data.add_output_groupstart({name: group_name,
collapsed: Boolean(collapsed)});
};

0 comments on commit 218fecf

Please sign in to comment.
Something went wrong with that request. Please try again.