1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

chore: remove dead code (#8298)

This commit is contained in:
Bartek Iwańczuk 2020-11-08 23:35:36 +01:00 committed by GitHub
parent 6743383d2e
commit a269dffe17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 1 additions and 7 deletions

View file

@ -1 +0,0 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.

View file

@ -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;

View file

@ -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(),

View file

@ -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);
}

View file

@ -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`);
}