mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-25 19:21:11 +08:00
feat: 模块命名空间枚举读活值并支持写穿
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user