From 33ea94a2476f87f22408dce8b7beb3587070e01b Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Wed, 5 Nov 2025 14:17:48 -0800 Subject: [PATCH] shortcut --- src/vm.ts | 4 ++++ 1 file changed, 4 insertions(+) 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)) }