summaryrefslogtreecommitdiff
path: root/core/isolate.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-03-26 11:56:34 -0400
committerBert Belder <bertbelder@gmail.com>2019-04-02 20:10:08 +0200
commit2b0f553e2e1b83ed8ff605f2ea25e2c31bb4c889 (patch)
tree9495fb1ac2360c8a782f9b27bb2b2bd6c130a3d7 /core/isolate.rs
parent5f1e42f8ac3a051e83908dcdd0c1f9735b32a79a (diff)
Add deno_core::RecursiveLoad for async module loading (#2034)
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};