summaryrefslogtreecommitdiff
path: root/cli/lib.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-11-13 23:14:48 -0500
committerRy Dahl <ry@tinyclouds.org>2019-11-13 23:42:35 -0500
commitfdf0ede2acd110ba04857d5674db19c908b3ff32 (patch)
tree880252cadf6dd5024fe4d32dca7ab903af55e713 /cli/lib.rs
parentfd62379eafde6571f126df5650b80cfda9f74229 (diff)
Revert "refactor: per-worker resource table (#3306)"
This patch does not work with the recent bundler changes (#3325). Unfortunately I didn't merge master before landing this patch. It has something to do with console.log not working inside the compiler worker. This reverts commit fd62379eafde6571f126df5650b80cfda9f74229.
Diffstat (limited to 'cli/lib.rs')
-rw-r--r--cli/lib.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/cli/lib.rs b/cli/lib.rs
index 3d772bb83..17ca94b55 100644
--- a/cli/lib.rs
+++ b/cli/lib.rs
@@ -43,6 +43,7 @@ pub mod permissions;
mod progress;
mod repl;
pub mod resolve_addr;
+pub mod resources;
mod shell;
mod signal;
pub mod source_maps;
@@ -56,7 +57,6 @@ pub mod worker;
use crate::deno_error::js_check;
use crate::deno_error::print_err_and_exit;
use crate::global_state::ThreadSafeGlobalState;
-use crate::ops::io::get_stdio;
use crate::progress::Progress;
use crate::state::ThreadSafeState;
use crate::worker::Worker;
@@ -128,15 +128,6 @@ fn create_worker_and_state(
.map_err(deno_error::print_err_and_exit)
.unwrap();
- let state_ = state.clone();
- {
- let mut resource_table = state_.lock_resource_table();
- let (stdin, stdout, stderr) = get_stdio();
- resource_table.add("stdin", Box::new(stdin));
- resource_table.add("stdout", Box::new(stdout));
- resource_table.add("stderr", Box::new(stderr));
- }
-
let worker = Worker::new(
"main".to_string(),
startup_data::deno_isolate_init(),