Adds a default template to resolver, adds "last" variable

This commit is contained in:
2024-08-21 15:43:59 -06:00
parent 9c9edd9e90
commit 1799c8da79
2 changed files with 10 additions and 5 deletions

View File

@@ -165,6 +165,7 @@ export class TTCQueryResolver {
}
public getFromStack(stackIndex: string): StackItem {
if (stackIndex === "$x") return this.stack.at(-1)!;
const i = Number(stackIndex.replace("$", ""));
const val = this.stack[i];
return val;