refactor: 动态编译改经 CompilerService 注入,oxide_vm 去编译器依赖

This commit is contained in:
2026-10-08 05:51:58 +00:00
parent 66735f802f
commit 4f9b6ab444
94 changed files with 459 additions and 67 deletions
+3
View File
@@ -12,6 +12,8 @@
/// ECMAScript 强转函数族。
mod coercion;
/// 动态编译服务接口(`Vm` 经它解耦对编译器的直接依赖)。
pub mod compiler_service;
/// builtins 依赖的 `VmHost` 能力面。
mod host;
/// builtin native 函数的三态返回值。
@@ -26,5 +28,6 @@ pub use coercion::{
to_string_full, to_string_value_full, to_uint32, to_units_full, well_known_symbol_name, write_number_into,
ToPrimitiveHint,
};
pub use compiler_service::CompilerService;
pub use host::VmHost;
pub use native_result::NativeResult;