Skip to content

Commit 706e961

Browse files
NathanBaulchtargos
authored andcommittedOct 4, 2024
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

+1-1
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

+2-2
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

+1-1
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

+3-3
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

+3-3
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

+1-1
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

+1-1
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

+1-1
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

+2-2
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

+1-1
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

‎src/quic/session.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1709,7 +1709,7 @@ void Session::EmitVersionNegotiation(const ngtcp2_pkt_hd& hd,
17091709
versions.AllocateSufficientStorage(nsv);
17101710
for (size_t n = 0; n < nsv; n++) versions[n] = to_integer(sv[n]);
17111711

1712-
// supported are the versons we acutually support expressed as a range.
1712+
// supported are the versions we acutually support expressed as a range.
17131713
// The first value is the minimum version, the second is the maximum.
17141714
Local<Value> supported[] = {to_integer(config_.options.min_version),
17151715
to_integer(config_.options.version)};

‎src/quic/sessionticket.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class SessionTicket final : public MemoryRetainer {
6161
// SessionTicket::AppData is a utility class that is used only during the
6262
// generation or access of TLS stateless sesson tickets. It exists solely to
6363
// provide a easier way for Session::Application instances to set relevant
64-
// metadata in the session ticket when it is created, and the exract and
64+
// metadata in the session ticket when it is created, and the extract and
6565
// subsequently verify that data when a ticket is received and is being
6666
// validated. The app data is completely opaque to anything other than the
6767
// server-side of the Session::Application that sets it.

‎src/quic/streams.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ class Stream : public AsyncWrap,
155155

156156
void BeginHeaders(HeadersKind kind);
157157
// Returns false if the header cannot be added. This will typically happen
158-
// if the application does not support headers, a maximimum number of headers
158+
// if the application does not support headers, a maximum number of headers
159159
// have already been added, or the maximum total header length is reached.
160160
bool AddHeader(const Header& header);
161161
void set_headers_kind(HeadersKind kind);

‎src/quic/tlscontext.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class TLSSession final : public MemoryRetainer {
2929
public:
3030
static const TLSSession& From(const SSL* ssl);
3131

32-
// The constructor is public in order to satisify the call to std::make_unique
32+
// The constructor is public in order to satisfy the call to std::make_unique
3333
// in TLSContext::NewSession. It should not be called directly.
3434
TLSSession(Session* session,
3535
std::shared_ptr<TLSContext> context,

‎src/tracing/trace_event.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -483,13 +483,13 @@ static V8_INLINE uint64_t AddTraceEventWithTimestampImpl(
483483
const char* scope, uint64_t id, uint64_t bind_id, int32_t num_args,
484484
const char** arg_names, const uint8_t* arg_types,
485485
const uint64_t* arg_values, unsigned int flags, int64_t timestamp) {
486-
std::unique_ptr<v8::ConvertableToTraceFormat> arg_convertables[2];
486+
std::unique_ptr<v8::ConvertableToTraceFormat> arg_convertibles[2];
487487
if (num_args > 0 && arg_types[0] == TRACE_VALUE_TYPE_CONVERTABLE) {
488-
arg_convertables[0].reset(reinterpret_cast<v8::ConvertableToTraceFormat*>(
488+
arg_convertibles[0].reset(reinterpret_cast<v8::ConvertableToTraceFormat*>(
489489
static_cast<intptr_t>(arg_values[0])));
490490
}
491491
if (num_args > 1 && arg_types[1] == TRACE_VALUE_TYPE_CONVERTABLE) {
492-
arg_convertables[1].reset(reinterpret_cast<v8::ConvertableToTraceFormat*>(
492+
arg_convertibles[1].reset(reinterpret_cast<v8::ConvertableToTraceFormat*>(
493493
static_cast<intptr_t>(arg_values[1])));
494494
}
495495
// DCHECK_LE(num_args, 2);
@@ -498,7 +498,7 @@ static V8_INLINE uint64_t AddTraceEventWithTimestampImpl(
498498
if (controller == nullptr) return 0;
499499
return controller->AddTraceEventWithTimestamp(
500500
phase, category_group_enabled, name, scope, id, bind_id, num_args,
501-
arg_names, arg_types, arg_values, arg_convertables, flags, timestamp);
501+
arg_names, arg_types, arg_values, arg_convertibles, flags, timestamp);
502502
}
503503

504504
static V8_INLINE void AddMetadataEventImpl(

0 commit comments

Comments
 (0)
Please sign in to comment.