Skip to content

Commit 706e961

Browse files
NathanBaulchtargos
authored andcommitted
src: fix typos
PR-URL: #55064 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent 8ad0dff commit 706e961

15 files changed

+24
-24
lines changed

src/aliased_buffer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class AliasedBufferBase : public MemoryRetainer {
111111
};
112112

113113
/**
114-
* Get the underlying v8 TypedArray overlayed on top of the native buffer
114+
* Get the underlying v8 TypedArray overlaid on top of the native buffer
115115
*/
116116
v8::Local<V8T> GetJSArray() const;
117117

src/compile_cache.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ void CompileCacheHandler::Persist() {
358358
// 2. v23.0.0-pre-arm64-5fad6d45-501 is the sub cache directory and
359359
// e7f8ef7f is the hash for the cache (see
360360
// CompileCacheHandler::Enable()),
361-
// 3. tcqrsK is generated by uv_fs_mkstemp() as a temporary indentifier.
361+
// 3. tcqrsK is generated by uv_fs_mkstemp() as a temporary identifier.
362362
uv_fs_t mkstemp_req;
363363
auto cleanup_mkstemp =
364364
OnScopeLeave([&mkstemp_req]() { uv_fs_req_cleanup(&mkstemp_req); });
@@ -444,7 +444,7 @@ CompileCacheHandler::CompileCacheHandler(Environment* env)
444444

445445
// Directory structure:
446446
// - Compile cache directory (from NODE_COMPILE_CACHE)
447-
// - $NODE_VERION-$ARCH-$CACHE_DATA_VERSION_TAG-$UID
447+
// - $NODE_VERSION-$ARCH-$CACHE_DATA_VERSION_TAG-$UID
448448
// - $FILENAME_AND_MODULE_TYPE_HASH.cache: a hash of filename + module type
449449
CompileCacheEnableResult CompileCacheHandler::Enable(Environment* env,
450450
const std::string& dir) {

src/env.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2178,7 +2178,7 @@ inline size_t Environment::SelfSize() const {
21782178
}
21792179

21802180
void Environment::MemoryInfo(MemoryTracker* tracker) const {
2181-
// Iteratable STLs have their own sizes subtracted from the parent
2181+
// Iterable STLs have their own sizes subtracted from the parent
21822182
// by default.
21832183
tracker->TrackField("isolate_data", isolate_data_);
21842184
tracker->TrackField("destroy_async_id_list", destroy_async_id_list_);

src/histogram.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ void HistogramImpl::AddMethods(Isolate* isolate, Local<FunctionTemplate> tmpl) {
9999

100100
void HistogramImpl::RegisterExternalReferences(
101101
ExternalReferenceRegistry* registry) {
102-
static bool is_registerd = false;
103-
if (is_registerd) return;
102+
static bool is_registered = false;
103+
if (is_registered) return;
104104
registry->Register(GetCount);
105105
registry->Register(GetCountBigInt);
106106
registry->Register(GetExceeds);
@@ -132,7 +132,7 @@ void HistogramImpl::RegisterExternalReferences(
132132
registry->Register(FastGetExceeds);
133133
registry->Register(FastGetStddev);
134134
registry->Register(FastGetPercentile);
135-
is_registerd = true;
135+
is_registered = true;
136136
}
137137

138138
HistogramBase::HistogramBase(

src/module_wrap.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Local<PrimitiveArray> ModuleWrap::GetHostDefinedOptions(
151151
}
152152

153153
// new ModuleWrap(url, context, source, lineOffset, columnOffset[, cachedData]);
154-
// new ModuleWrap(url, context, source, lineOffset, columOffset,
154+
// new ModuleWrap(url, context, source, lineOffset, columnOffset,
155155
// idSymbol);
156156
// new ModuleWrap(url, context, exportNames, evaluationCallback[, cjsModule])
157157
void ModuleWrap::New(const FunctionCallbackInfo<Value>& args) {
@@ -191,9 +191,9 @@ void ModuleWrap::New(const FunctionCallbackInfo<Value>& args) {
191191
// cjsModule])
192192
CHECK(args[3]->IsFunction());
193193
} else {
194-
// new ModuleWrap(url, context, source, lineOffset, columOffset[,
194+
// new ModuleWrap(url, context, source, lineOffset, columnOffset[,
195195
// cachedData]);
196-
// new ModuleWrap(url, context, source, lineOffset, columOffset,
196+
// new ModuleWrap(url, context, source, lineOffset, columnOffset,
197197
// idSymbol);
198198
CHECK(args[2]->IsString());
199199
CHECK(args[3]->IsNumber());

src/node.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ void ResetSignalHandlers() {
543543
continue;
544544
act.sa_handler = (nr == SIGPIPE || nr == SIGXFSZ) ? SIG_IGN : SIG_DFL;
545545
if (act.sa_handler == SIG_DFL) {
546-
// The only bad handler value we can inhert from before exec is SIG_IGN
546+
// The only bad handler value we can inherit from before exec is SIG_IGN
547547
// (any actual function pointer is reset to SIG_DFL during exec).
548548
// If that's the case, we want to reset it back to SIG_DFL.
549549
// However, it's also possible that an embeder (or an LD_PRELOAD-ed

src/node_messaging.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ void MessagePort::OnMessage(MessageProcessingMode mode) {
802802
// The data_ could be freed or, the handle has been/is being closed.
803803
// A possible case for this, is transfer the MessagePort to another
804804
// context, it will call the constructor and trigger the async handle empty.
805-
// Because all data was sent from the preivous context.
805+
// Because all data was sent from the previous context.
806806
if (IsDetached()) return;
807807

808808
HandleScope handle_scope(env()->isolate());

src/node_task_runner.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ ProcessRunner::ProcessRunner(std::shared_ptr<InitializationResultImpl> result,
6969
command_args_ = {
7070
options_.file, "/d", "/s", "/c", "\"" + command_str + "\""};
7171
} else {
72-
// If the file is not cmd.exe, and it is unclear wich shell is being used,
72+
// If the file is not cmd.exe, and it is unclear which shell is being used,
7373
// so assume -c is the correct syntax (Unix-like shells use -c for this
7474
// purpose).
7575
command_args_ = {options_.file, "-c", command_str};

src/quic/endpoint.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ void Endpoint::InitPerContext(Realm* realm, Local<Object> target) {
624624
#undef V
625625

626626
#define V(name, _) IDX_STATS_ENDPOINT_##name,
627-
enum IDX_STATS_ENDPONT { ENDPOINT_STATS(V) IDX_STATS_ENDPOINT_COUNT };
627+
enum IDX_STATS_ENDPOINT { ENDPOINT_STATS(V) IDX_STATS_ENDPOINT_COUNT };
628628
NODE_DEFINE_CONSTANT(target, IDX_STATS_ENDPOINT_COUNT);
629629
#undef V
630630

@@ -1521,7 +1521,7 @@ void Endpoint::Receive(const uv_buf_t& buf,
15211521
// packet with a non-standard CID length.
15221522
if (UNLIKELY(pversion_cid.dcidlen > NGTCP2_MAX_CIDLEN ||
15231523
pversion_cid.scidlen > NGTCP2_MAX_CIDLEN)) {
1524-
Debug(this, "Packet had incorrectly sized CIDs, igoring");
1524+
Debug(this, "Packet had incorrectly sized CIDs, ignoring");
15251525
return; // Ignore the packet!
15261526
}
15271527

src/quic/endpoint.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class Endpoint final : public AsyncWrap, public Packet::Listener {
9292
// Similar to stateless resets, we enforce a limit on the number of retry
9393
// packets that can be generated and sent for a remote host. Generating
9494
// retry packets consumes a modest amount of resources and it's fairly
95-
// trivial for a malcious peer to trigger generation of a large number of
95+
// trivial for a malicious peer to trigger generation of a large number of
9696
// retries, so limiting them helps prevent a DOS vector.
9797
uint64_t max_retries = DEFAULT_MAX_RETRY_LIMIT;
9898

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy