feat: 模块命名空间枚举读活值并支持写穿

This commit is contained in:
2026-09-18 00:02:21 +00:00
parent cafac572fa
commit ed65b5282f
11 changed files with 263 additions and 22 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ impl Vm {
return match state {
oxide_builtins::module::ModuleNsQuery::Initialized(v) => Ok(v),
oxide_builtins::module::ModuleNsQuery::Uninitialized => {
let msg = "Cannot access module export before initialization";
let msg = oxide_builtins::module::NS_UNINITIALIZED_MESSAGE;
if self.native_call_depth == 0 {
self.raise_error_kind("ReferenceError", msg)?;
} else {