mirror of
https://github.com/denoland/deno.git
synced 2024-12-21 23:04:45 -05:00
chore: remove dead code (#8298)
This commit is contained in:
parent
6743383d2e
commit
a269dffe17
5 changed files with 1 additions and 7 deletions
|
@ -1 +0,0 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
|
@ -23,7 +23,6 @@ mod flags_allow_net;
|
|||
mod fmt;
|
||||
mod fmt_errors;
|
||||
mod fs;
|
||||
mod global_timer;
|
||||
mod http_cache;
|
||||
mod http_util;
|
||||
mod import_map;
|
||||
|
|
|
@ -32,9 +32,7 @@ fn op_start(
|
|||
let gs = &super::program_state(state);
|
||||
|
||||
Ok(json!({
|
||||
// TODO(bartlomieju): `cwd` field is not used in JS, remove?
|
||||
"args": gs.flags.argv.clone(),
|
||||
"cwd": &env::current_dir().unwrap(),
|
||||
"debugFlag": gs.flags.log_level.map_or(false, |l| l == log::Level::Debug),
|
||||
"denoVersion": version::DENO,
|
||||
"noColor": !colors::use_color(),
|
||||
|
|
|
@ -298,7 +298,7 @@ delete Object.prototype.__proto__;
|
|||
}
|
||||
});
|
||||
|
||||
const { args, cwd, noColor, pid, ppid, unstableFlag } = runtimeStart();
|
||||
const { args, noColor, pid, ppid, unstableFlag } = runtimeStart();
|
||||
|
||||
registerErrors();
|
||||
|
||||
|
@ -330,7 +330,6 @@ delete Object.prototype.__proto__;
|
|||
Object.freeze(globalThis.Deno.core.sharedQueue);
|
||||
signals.setSignals();
|
||||
|
||||
util.log("cwd", cwd);
|
||||
util.log("args", args);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
console.log("hello from test_worker_basic.js");
|
||||
|
||||
// TODO(bartlomieju): add test for throwing in web worker
|
||||
if (self.name !== "jsWorker") {
|
||||
throw Error(`Bad worker name: ${self.name}, expected jsWorker`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue