You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 带GC的基础环境pubtypeEnvironment = Gc<GcCell<Box<dynEnvironmentRecordTrait>>>;// 词法环境的类型pubenumEnvironmentType{Declarative,Function,Global,Object,}// 函数作用域和块作用域pubenumVariableScope{/// The variable declaration is scoped to the current block (`let` and `const`)Block,/// The variable declaration is scoped to the current function (`var`)Function,}// 词法环境栈/栈帧pubstructLexicalEnvironment{environment_stack:VecDeque<Environment>,}
总结
(基础)声明环境记录
函数环境记录
outer_env
获取/修改外部环境outer_env
获取全局对象对象环境变量
全局环境记录
词法环境
The text was updated successfully, but these errors were encountered: