mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Remove redundant check for Debugger.Object.displayName property (bug 786711). r=jimb
This commit is contained in:
parent
ab73d21425
commit
09463803b4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user