Remove redundant check for Debugger.Object.displayName property (bug 786711). r=jimb

This commit is contained in:
Panos Astithas 2012-09-18 10:30:02 +03:00
parent ab73d21425
commit 09463803b4

View File

@ -1826,7 +1826,7 @@ function getFunctionName(aFunction) {
let desc = aFunction.getOwnPropertyDescriptor("displayName");
if (desc && desc.value && typeof desc.value == "string") {
name = desc.value;
} else if ("displayName" in aFunction) {
} else {
// Otherwise use SpiderMonkey's inferred name.
name = aFunction.displayName;
}