mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-22 06:02:26 +01:00
IPVGO: Ensure full name of method is recorded in the possibleLogs list, to be matched later (#1207)
This commit is contained in:
parent
057ccc2a2b
commit
ed59f325ef
@ -1789,10 +1789,10 @@ function getFunctionNames(obj: object, prefix: string): string[] {
|
|||||||
for (const [key, value] of Object.entries(obj)) {
|
for (const [key, value] of Object.entries(obj)) {
|
||||||
if (key === "args") {
|
if (key === "args") {
|
||||||
continue;
|
continue;
|
||||||
} else if (typeof value == "function") {
|
} else if (typeof value === "function") {
|
||||||
functionNames.push(prefix + key);
|
functionNames.push(prefix + key);
|
||||||
} else if (typeof value == "object") {
|
} else if (typeof value === "object") {
|
||||||
functionNames.push(...getFunctionNames(value, key + "."));
|
functionNames.push(...getFunctionNames(value, `${prefix}${key}.`));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return functionNames;
|
return functionNames;
|
||||||
|
Loading…
Reference in New Issue
Block a user