refactor: 拆分 Kernel 中可变 Session 与不可变 Core

This commit is contained in:
爱特每羊队
2026-06-14 12:58:09 +08:00
parent ec537cb8b3
commit d242d08e6d
63 changed files with 666 additions and 615 deletions
@@ -10,7 +10,7 @@ fn eval(vm: &mut Vm, source: &str) -> Result<JsValue, String> {
}
fn to_str(vm: &Vm, val: JsValue) -> String {
vm.kernel().string_forge().lookup(val.as_string_index()).unwrap_or_default()
vm.kernel_core().string_forge().lookup(val.as_string_index()).unwrap_or_default()
}
#[test]