summaryrefslogtreecommitdiff
path: root/core/isolate.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/isolate.rs')
-rw-r--r--core/isolate.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/isolate.rs b/core/isolate.rs
index a8ee22d47..9145513f1 100644
--- a/core/isolate.rs
+++ b/core/isolate.rs
@@ -1,4 +1,9 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
+
+// Do not add dependenies to modules.rs. it should remain decoupled from the
+// isolate to keep the Isolate struct from becoming too bloating for users who
+// do not need asynchronous module loading.
+
use crate::js_errors::JSError;
use crate::libdeno;
use crate::libdeno::deno_buf;
@@ -287,7 +292,6 @@ impl<B: Behavior> Isolate<B> {
}
/// Low-level module creation.
- /// You probably want to use IsolateState::mod_execute instead.
pub fn mod_new(
&self,
main: bool,
@@ -523,7 +527,7 @@ pub fn js_check(r: Result<(), JSError>) {
}
#[cfg(test)]
-mod tests {
+pub mod tests {
use super::*;
use std::sync::atomic::{AtomicUsize, Ordering};