Skip to content

Commit 200333b

Browse files
author
Chris K
committed
DFL-3463 Exceptions in Scripts panel on experimental
1 parent 653dfc1 commit 200333b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/ecma-debugger/watches/watches.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,12 @@ cls.Watches = function(view)
131131
"0": [[["watches"]]],
132132
"watches": [[[], []]]
133133
};
134-
this._expand_tree =
134+
var raw_tree =
135135
{
136136
"object_id": 0,
137137
"protos": {"0": {"": {"object_id": "watches"}}}
138138
};
139+
this._expand_tree = new Dict(raw_tree);
139140
};
140141

141142
/* implementation */

src/lib/dict.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ Dict.prototype = new function()
5858
this._dict = Object.create ? Object.create(null) : {};
5959
for (var key in obj)
6060
{
61-
this.set(key, obj[key]);
61+
var value = obj[key];
62+
if (Object.prototype.toString.call(value) == "[object Object]")
63+
value = new Dict(value);
64+
this.set(key, value);
6265
}
6366
};
6467
};

0 commit comments

Comments
 (0)