Scope API
Scope 类管理 JSVM2 中的变量作用域和绑定关系。
Scope 类
class Scope {
static createRoot(context?: Context): Scope
declareVar(name: string, value?: any): void
declareConst(name: string, value: any): void
declareLet(name: string, value?: any): void
hasOwnBinding(name: string): Variable | undefined
getBinding(name: string): Variable | undefined
setBinding(name: string, value: any): void
}