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
@@ -1,8 +1,8 @@
use oxide_types::value::JsValue;
use crate::coercion;
use crate::native::NativeResult;
use crate::vm::Vm;
use oxide_runtime_api::NativeResult;
pub fn number_constructor(vm: &mut Vm, args: &[u8]) -> NativeResult {
let n = if args.len() > 1 { coercion::to_number(vm.reg(args[1])) } else { 0.0 };