feat: 绑定全局 escape/unescape 与缺失全局桩函数

This commit is contained in:
爱特每羊队
2026-06-14 17:21:38 +08:00
parent a31d22cd3f
commit 4c3a5830c9
7 changed files with 203 additions and 12 deletions
+4 -1
View File
@@ -37,7 +37,10 @@ fn eval_val(source: &str) -> (Vm, Result<JsValue, String>) {
fn to_str(vm: &Vm, val: JsValue) -> String {
if val.is_string() {
vm.kernel_core().string_forge().lookup(val.as_string_index()).unwrap_or_default()
vm.kernel_core()
.string_forge()
.lookup(val.as_string_index())
.unwrap_or_default()
} else {
format!("{}", val)
}