diff options
author | Matt Mastracci <matthew@mastracci.com> | 2023-06-14 10:45:59 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-14 16:45:59 +0000 |
commit | 88e6e9c1e6263f326d30b7fcc33465e0428faf33 (patch) | |
tree | 956e60abea884d89e4c76cc792e2b3159317278e /core/runtime/mod.rs | |
parent | cd27757184e683575c2540f73a96dc96e268943a (diff) |
refactor(core): some runtime methods should live on the module map (#19502)
A few easy migrations of module code from the runtime to the module map.
The module map already has a few places where it needs a handle scope,
so we're not coupling it any further with the v8 runtime.
`init_runtime_module_map` is replaced with an option to reduce API
surface of JsRuntime.
`module_resolve_callback` now lives in the `ModuleMap` and we use a
annex data to avoid having to go through the `Rc<RefCell<...>>` stored
in the `JsRuntime`'s isolate.
Diffstat (limited to 'core/runtime/mod.rs')
-rw-r--r-- | core/runtime/mod.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core/runtime/mod.rs b/core/runtime/mod.rs index 2bd3ea9fe..aa546b8c7 100644 --- a/core/runtime/mod.rs +++ b/core/runtime/mod.rs @@ -32,4 +32,3 @@ pub use snapshot_util::FilterFn; pub(crate) use snapshot_util::SnapshottedData; pub use bindings::script_origin; -pub use bindings::throw_type_error; |