mirror of
https://github.com/denoland/deno.git
synced 2025-03-03 09:31:22 -05:00
chore: remove repetitive words (#23341)
Signed-off-by: youngwendy <clonefetch@outlook.com>
This commit is contained in:
parent
650db71e35
commit
84e198f0d0
7 changed files with 7 additions and 7 deletions
|
@ -289,7 +289,7 @@ mod ts {
|
|||
|
||||
// NOTE(bartlomieju): Compressing the TSC snapshot in debug build took
|
||||
// ~45s on M1 MacBook Pro; without compression it took ~1s.
|
||||
// Thus we're not not using compressed snapshot, trading off
|
||||
// Thus we're not using compressed snapshot, trading off
|
||||
// a lot of build time for some startup time in debug build.
|
||||
let mut file = std::fs::File::create(snapshot_path).unwrap();
|
||||
if cfg!(debug_assertions) {
|
||||
|
|
|
@ -304,7 +304,7 @@ impl Document {
|
|||
resolver: &dyn deno_graph::source::Resolver,
|
||||
npm_resolver: &dyn deno_graph::source::NpmResolver,
|
||||
) -> Arc<Self> {
|
||||
// we only ever do `Document::new` on on disk resources that are supposed to
|
||||
// we only ever do `Document::new` on disk resources that are supposed to
|
||||
// be diagnosable, unlike `Document::open`, so it is safe to unconditionally
|
||||
// parse the module.
|
||||
let (maybe_parsed_source, maybe_module) = parse_and_analyze_module(
|
||||
|
|
2
cli/tsc/dts/lib.dom.d.ts
vendored
2
cli/tsc/dts/lib.dom.d.ts
vendored
|
@ -25582,7 +25582,7 @@ interface WebSocket extends EventTarget {
|
|||
*/
|
||||
readonly url: string;
|
||||
/**
|
||||
* Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
|
||||
* Closes the WebSocket connection, optionally using code as the WebSocket connection close code and reason as the WebSocket connection close reason.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)
|
||||
*/
|
||||
|
|
2
cli/tsc/dts/lib.webworker.d.ts
vendored
2
cli/tsc/dts/lib.webworker.d.ts
vendored
|
@ -8292,7 +8292,7 @@ interface WebSocket extends EventTarget {
|
|||
*/
|
||||
readonly url: string;
|
||||
/**
|
||||
* Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
|
||||
* Closes the WebSocket connection, optionally using code as the WebSocket connection close code and reason as the WebSocket connection close reason.
|
||||
*
|
||||
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/WebSocket/close)
|
||||
*/
|
||||
|
|
|
@ -60,7 +60,7 @@ pub static COMPILER_SNAPSHOT: Lazy<Box<[u8]>> = Lazy::new(
|
|||
|
||||
// NOTE(bartlomieju): Compressing the TSC snapshot in debug build took
|
||||
// ~45s on M1 MacBook Pro; without compression it took ~1s.
|
||||
// Thus we're not not using compressed snapshot, trading off
|
||||
// Thus we're not using compressed snapshot, trading off
|
||||
// a lot of build time for some startup time in debug build.
|
||||
#[cfg(debug_assertions)]
|
||||
return COMPRESSED_COMPILER_SNAPSHOT.to_vec().into_boxed_slice();
|
||||
|
|
|
@ -346,7 +346,7 @@ function hasBuiltInToString(value) {
|
|||
return true;
|
||||
}
|
||||
|
||||
// The object has a own `toString` property. Thus it's not not a built-in one.
|
||||
// The object has a own `toString` property. Thus it's not a built-in one.
|
||||
if (Object.prototype.hasOwnProperty.call(value, "toString")) {
|
||||
return false;
|
||||
}
|
||||
|
|
2
ext/websocket/lib.deno_websocket.d.ts
vendored
2
ext/websocket/lib.deno_websocket.d.ts
vendored
|
@ -85,7 +85,7 @@ declare interface WebSocket extends EventTarget {
|
|||
*/
|
||||
readonly url: string;
|
||||
/**
|
||||
* Closes the WebSocket connection, optionally using code as the the WebSocket connection close code and reason as the the WebSocket connection close reason.
|
||||
* Closes the WebSocket connection, optionally using code as the WebSocket connection close code and reason as the WebSocket connection close reason.
|
||||
*/
|
||||
close(code?: number, reason?: string): void;
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue