Adds a default template to resolver, adds "last" variable
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user