Bug 889838 - Silent exception when inspecting debugger variables on old actors. r=past

This commit is contained in:
Alexandre Poirot 2013-07-03 15:27:10 -04:00
parent edeb7caf7a
commit f92fd1bb9e

View File

@ -123,7 +123,9 @@ VariablesViewController.prototype = {
let deferred = Promise.defer();
this._getGripClient(aGrip).getPrototypeAndProperties(aResponse => {
let { ownProperties, prototype, safeGetterValues } = aResponse;
let { ownProperties, prototype } = aResponse;
// safeGetterValues is new and isn't necessary defined on old actors
let safeGetterValues = aResponse.safeGetterValues || {};
let sortable = VariablesView.isSortable(aGrip.class);
// Merge the safe getter values into one object such that we can use it