mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1050000 - check "result" against undefined before use. r=past
This commit is contained in:
parent
910478ed06
commit
41996aa938
@ -1177,10 +1177,10 @@ let DebuggerEnvironmentSupport = {
|
||||
// TODO: we should use getVariableDescriptor() here - bug 725815.
|
||||
let result = aObj.getVariable(aName);
|
||||
// FIXME: Need actual UI, bug 941287.
|
||||
if (result.optimizedOut || result.missingArguments) {
|
||||
if (result === undefined || result.optimizedOut || result.missingArguments) {
|
||||
return null;
|
||||
}
|
||||
return result === undefined ? null : { value: result };
|
||||
return { value: result };
|
||||
},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user