mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
step into closures from elsewhere (draft)
This commit is contained in:
@ -1737,6 +1737,10 @@ async function runCallback(args, name) {
|
||||
throw new Error(`"${name}" is not callable.`);
|
||||
}
|
||||
closure.scope.parent = scope;
|
||||
if (args._debugController && !closure.debugController) {
|
||||
closure.debugController = args._debugController;
|
||||
}
|
||||
while (closure.providedArgumentList.pop());
|
||||
closure.argumentList.forEach(arg => {
|
||||
if (Object.keys(args).includes(arg.name)) {
|
||||
const providedArg = new SlashCommandNamedArgumentAssignment();
|
||||
|
Reference in New Issue
Block a user