Skip to content

Commit 3f390ef

Browse files
committed
Simplify Inspection#get_object() to only take an object ID, since object IDs are unique across runtimes.
1 parent dcc502f commit 3f390ef

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ecma-debugger/objectinspection.6.0/inspectablejsobject.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,11 +955,11 @@ cls.InspectionsPrototype = function()
955955
* rely in this for things that are dependent on the state, e.g. the
956956
* expanded state.
957957
*/
958-
this.get_object = function(rt_id, obj_id)
958+
this.get_object = function(obj_id)
959959
{
960960
for (var i = 0, object; object = this.objects[i]; i++)
961961
{
962-
if (object.runtime_id === rt_id && object.object_id === obj_id)
962+
if (object.object_id === obj_id)
963963
return object;
964964
}
965965
return null;

src/ecma-debugger/templates.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@
459459
}
460460

461461
var object = retval.functionFrom;
462-
var func_model = window.inspections.get_object(rt_id, object.objectID);
462+
var func_model = window.inspections.get_object(object.objectID);
463463
if (!func_model)
464464
{
465465
func_model = new cls.InspectableJSObject(rt_id,

0 commit comments

Comments
 (0)