summaryrefslogtreecommitdiff
path: root/core/lib.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2021-05-26 21:07:12 +0200
committerGitHub <noreply@github.com>2021-05-26 21:07:12 +0200
commite5beb800c94099852964d482a32a13f5c29ec147 (patch)
tree1ad89cc15efa84efe690e05b18d5827e1983dbca /core/lib.rs
parente9edd7e14d9d78f03c5f2e67fcc44e4dbaab8f2c (diff)
refactor: move JsRuntimeInspector to deno_core (#10763)
This commit moves implementation of "JsRuntimeInspector" to "deno_core" crate. To achieve that following changes were made: * "Worker" and "WebWorker" no longer own instance of "JsRuntimeInspector", instead it is now owned by "deno_core::JsRuntime". * Consequently polling of inspector is no longer done in "Worker"/"WebWorker", instead it's done in "deno_core::JsRuntime::poll_event_loop". * "deno_core::JsRuntime::poll_event_loop" and "deno_core::JsRuntime::run_event_loop", now accept "wait_for_inspector" boolean that tells if event loop should still be "pending" if there are active inspector sessions - this change fixes the problem that inspector disconnects from the frontend and process exits once the code has stopped executing.
Diffstat (limited to 'core/lib.rs')
-rw-r--r--core/lib.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/lib.rs b/core/lib.rs
index 90b2cdfc4..7d49c1420 100644
--- a/core/lib.rs
+++ b/core/lib.rs
@@ -6,6 +6,7 @@ pub mod error;
mod extensions;
mod flags;
mod gotham_state;
+mod inspector;
mod module_specifier;
mod modules;
mod normalize_path;
@@ -37,6 +38,9 @@ pub use crate::async_cell::AsyncRefFuture;
pub use crate::async_cell::RcLike;
pub use crate::async_cell::RcRef;
pub use crate::flags::v8_set_flags;
+pub use crate::inspector::InspectorSessionProxy;
+pub use crate::inspector::JsRuntimeInspector;
+pub use crate::inspector::LocalInspectorSession;
pub use crate::module_specifier::resolve_import;
pub use crate::module_specifier::resolve_path;
pub use crate::module_specifier::resolve_url;