diff --git a/src/vm.ts b/src/vm.ts index 4afe9b3..667e41b 100644 --- a/src/vm.ts +++ b/src/vm.ts @@ -48,6 +48,10 @@ export class VM { } } + get(name: string) { + return this.scope.get(name) + } + set(name: string, value: any) { this.scope.set(name, toValue(value, this)) }