mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
core: Privatize ModuleNameMap SymbolicModule deno_buf (#2324)
This commit is contained in:
parent
07886a03cc
commit
1fc61f3b6a
3 changed files with 3 additions and 4 deletions
|
@ -121,7 +121,7 @@ pub fn dispatch_all_legacy(
|
|||
op.or_else(move |err: DenoError| -> Result<Buf, ()> {
|
||||
debug!("op err {}", err);
|
||||
// No matter whether we got an Err or Ok, we want a serialized message to
|
||||
// send back. So transform the DenoError into a deno_buf.
|
||||
// send back. So transform the DenoError into a Buf.
|
||||
let builder = &mut FlatBufferBuilder::new();
|
||||
let errmsg_offset = builder.create_string(&format!("{}", err));
|
||||
Ok(serialize_response(
|
||||
|
|
|
@ -14,7 +14,6 @@ mod shared_queue;
|
|||
pub use crate::flags::v8_set_flags;
|
||||
pub use crate::isolate::*;
|
||||
pub use crate::js_errors::*;
|
||||
pub use crate::libdeno::deno_buf;
|
||||
pub use crate::libdeno::deno_mod;
|
||||
pub use crate::libdeno::PinnedBuf;
|
||||
pub use crate::modules::*;
|
||||
|
|
|
@ -305,7 +305,7 @@ impl ModuleInfo {
|
|||
}
|
||||
|
||||
/// A symbolic module entity.
|
||||
pub enum SymbolicModule {
|
||||
enum SymbolicModule {
|
||||
/// This module is an alias to another module.
|
||||
/// This is useful such that multiple names could point to
|
||||
/// the same underlying module (particularly due to redirects).
|
||||
|
@ -316,7 +316,7 @@ pub enum SymbolicModule {
|
|||
|
||||
#[derive(Default)]
|
||||
/// Alias-able module name map
|
||||
pub struct ModuleNameMap {
|
||||
struct ModuleNameMap {
|
||||
inner: HashMap<String, SymbolicModule>,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue