1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 15:24:46 -05:00

core: Privatize ModuleNameMap SymbolicModule deno_buf (#2324)

This commit is contained in:
Bartek Iwańczuk 2019-05-09 22:44:30 +02:00 committed by Ryan Dahl
parent 07886a03cc
commit 1fc61f3b6a
3 changed files with 3 additions and 4 deletions

View file

@ -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(

View file

@ -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::*;

View file

@ -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>,
}