refactor(ext/node): export GlobalsStorage (#28683)

This commit is contained in:
Benjamin Swerdlow 2025-03-31 11:00:05 -07:00 committed by GitHub
parent aa1f43702d
commit cf4afb9c9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View file

@ -105,7 +105,7 @@ enum Mode {
Node,
}
struct GlobalsStorage {
pub struct GlobalsStorage {
deno_globals: v8::Global<v8::Object>,
node_globals: v8::Global<v8::Object>,
}

View file

@ -40,6 +40,7 @@ pub use ops::vm::VM_CONTEXT_INDEX;
use crate::global::global_object_middleware;
use crate::global::global_template_middleware;
pub use crate::global::GlobalsStorage;
pub fn is_builtin_node_module(module_name: &str) -> bool {
DenoIsBuiltInNodeModuleChecker.is_builtin_node_module(module_name)