feat: 迁移 NativeResult

This commit is contained in:
2026-06-25 18:32:09 +08:00
parent 14f82d2c4d
commit 00c38ba5f9
32 changed files with 164 additions and 66 deletions
+1 -1
View File
@@ -3,9 +3,9 @@ use oxide_types::object::JsObject;
use oxide_types::value::JsValue;
use crate::coercion;
use crate::native::NativeResult;
use crate::vm::Vm;
use memchr::memchr;
use oxide_runtime_api::NativeResult;
fn this_string(vm: &Vm, args: &[u8]) -> String {
coercion::to_string(vm.reg(args[0]))