mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
chore: fix typos (#22677)
This commit is contained in:
parent
11db68ce96
commit
d4b3b39cc0
7 changed files with 9 additions and 9 deletions
|
@ -166,7 +166,7 @@ pub fn graph_valid(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Checks the lockfile against the graph and and exits on errors.
|
/// Checks the lockfile against the graph and exits on errors.
|
||||||
pub fn graph_lock_or_exit(graph: &ModuleGraph, lockfile: &mut Lockfile) {
|
pub fn graph_lock_or_exit(graph: &ModuleGraph, lockfile: &mut Lockfile) {
|
||||||
for module in graph.modules() {
|
for module in graph.modules() {
|
||||||
let source = match module {
|
let source = match module {
|
||||||
|
|
|
@ -319,7 +319,7 @@ pub fn main() {
|
||||||
let args: Vec<String> = env::args().collect();
|
let args: Vec<String> = env::args().collect();
|
||||||
|
|
||||||
// NOTE(lucacasonato): due to new PKU feature introduced in V8 11.6 we need to
|
// NOTE(lucacasonato): due to new PKU feature introduced in V8 11.6 we need to
|
||||||
// initalize the V8 platform on a parent thread of all threads that will spawn
|
// initialize the V8 platform on a parent thread of all threads that will spawn
|
||||||
// V8 isolates.
|
// V8 isolates.
|
||||||
|
|
||||||
let future = async move {
|
let future = async move {
|
||||||
|
|
|
@ -524,7 +524,7 @@ impl ConditionalEventHandler for ReverseSearchHistoryEventHandler {
|
||||||
/// A custom tab key event handler
|
/// A custom tab key event handler
|
||||||
/// It uses a heuristic to determine if the user is requesting completion or if they want to insert an actual tab
|
/// It uses a heuristic to determine if the user is requesting completion or if they want to insert an actual tab
|
||||||
/// The heuristic goes like this:
|
/// The heuristic goes like this:
|
||||||
/// - If the last character before the cursor is whitespace, the the user wants to insert a tab
|
/// - If the last character before the cursor is whitespace, the user wants to insert a tab
|
||||||
/// - Else the user is requesting completion
|
/// - Else the user is requesting completion
|
||||||
struct TabEventHandler;
|
struct TabEventHandler;
|
||||||
impl ConditionalEventHandler for TabEventHandler {
|
impl ConditionalEventHandler for TabEventHandler {
|
||||||
|
|
|
@ -762,7 +762,7 @@ async fn run_tests_for_worker_inner(
|
||||||
|
|
||||||
// Poll event loop once, to allow all ops that are already resolved, but haven't
|
// Poll event loop once, to allow all ops that are already resolved, but haven't
|
||||||
// responded to settle.
|
// responded to settle.
|
||||||
// TODO(mmastrac): we should provide an API to poll the event loop until no futher
|
// TODO(mmastrac): we should provide an API to poll the event loop until no further
|
||||||
// progress is made.
|
// progress is made.
|
||||||
poll_event_loop(worker).await?;
|
poll_event_loop(worker).await?;
|
||||||
|
|
||||||
|
|
|
@ -497,7 +497,7 @@ pub async fn upgrade(
|
||||||
|
|
||||||
let archive_data = download_package(client, &download_url)
|
let archive_data = download_package(client, &download_url)
|
||||||
.await
|
.await
|
||||||
.with_context(|| format!("Failed downloading {download_url}. The version you requested may not have been built for the current architechture."))?;
|
.with_context(|| format!("Failed downloading {download_url}. The version you requested may not have been built for the current architecture."))?;
|
||||||
|
|
||||||
log::info!("Deno is upgrading to version {}", &install_version);
|
log::info!("Deno is upgrading to version {}", &install_version);
|
||||||
|
|
||||||
|
|
|
@ -289,7 +289,7 @@ pub fn op_http_set_promise_complete(external: *const c_void, status: u16) {
|
||||||
|
|
||||||
fn set_promise_complete(http: Rc<HttpRecord>, status: u16) {
|
fn set_promise_complete(http: Rc<HttpRecord>, status: u16) {
|
||||||
// The Javascript code should never provide a status that is invalid here (see 23_response.js), so we
|
// The Javascript code should never provide a status that is invalid here (see 23_response.js), so we
|
||||||
// will quitely ignore invalid values.
|
// will quietly ignore invalid values.
|
||||||
if let Ok(code) = StatusCode::from_u16(status) {
|
if let Ok(code) = StatusCode::from_u16(status) {
|
||||||
http.response_parts().status = code;
|
http.response_parts().status = code;
|
||||||
}
|
}
|
||||||
|
@ -686,7 +686,7 @@ fn set_response(
|
||||||
http.set_response_body(response_fn(compression));
|
http.set_response_body(response_fn(compression));
|
||||||
|
|
||||||
// The Javascript code should never provide a status that is invalid here (see 23_response.js), so we
|
// The Javascript code should never provide a status that is invalid here (see 23_response.js), so we
|
||||||
// will quitely ignore invalid values.
|
// will quietly ignore invalid values.
|
||||||
if let Ok(code) = StatusCode::from_u16(status) {
|
if let Ok(code) = StatusCode::from_u16(status) {
|
||||||
http.response_parts().status = code;
|
http.response_parts().status = code;
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,7 +118,7 @@ fn bundle_circular() {
|
||||||
.arg(&bundle_path)
|
.arg(&bundle_path)
|
||||||
.output()
|
.output()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
// check the output of the the bundle program.
|
// check the output of the bundle program.
|
||||||
assert_ends_with!(
|
assert_ends_with!(
|
||||||
std::str::from_utf8(&output.stdout).unwrap().trim(),
|
std::str::from_utf8(&output.stdout).unwrap().trim(),
|
||||||
"f2\nf1",
|
"f2\nf1",
|
||||||
|
@ -150,7 +150,7 @@ fn bundle_single_module() {
|
||||||
.arg(&bundle)
|
.arg(&bundle)
|
||||||
.output()
|
.output()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
// check the output of the the bundle program.
|
// check the output of the bundle program.
|
||||||
assert_ends_with!(
|
assert_ends_with!(
|
||||||
std::str::from_utf8(&output.stdout).unwrap().trim(),
|
std::str::from_utf8(&output.stdout).unwrap().trim(),
|
||||||
"Hello world!",
|
"Hello world!",
|
||||||
|
|
Loading…
Reference in a new issue