Skip to content

Commit b5fb2ff

Browse files
authored
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 fd787c9 commit b5fb2ff

16 files changed

+25
-25
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/cppgc_helpers.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class CppgcMixin : public cppgc::GarbageCollectedMixin {
121121

122122
/**
123123
* Helper macro the manage the cppgc-based wrapper hierarchy. This must
124-
* be used at the left-most postion - right after `:` in the class inheritance,
124+
* be used at the left-most position - right after `:` in the class inheritance,
125125
* like this:
126126
* class Klass : CPPGC_MIXIN(Klass) ... {}
127127
*

src/env.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2167,7 +2167,7 @@ inline size_t Environment::SelfSize() const {
21672167
}
21682168

21692169
void Environment::MemoryInfo(MemoryTracker* tracker) const {
2170-
// Iteratable STLs have their own sizes subtracted from the parent
2170+
// Iterable STLs have their own sizes subtracted from the parent
21712171
// by default.
21722172
tracker->TrackField("isolate_data", isolate_data_);
21732173
tracker->TrackField("destroy_async_id_list", destroy_async_id_list_);

src/histogram.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ void HistogramImpl::AddMethods(Isolate* isolate, Local<FunctionTemplate> tmpl) {
100100

101101
void HistogramImpl::RegisterExternalReferences(
102102
ExternalReferenceRegistry* registry) {
103-
static bool is_registerd = false;
104-
if (is_registerd) return;
103+
static bool is_registered = false;
104+
if (is_registered) return;
105105
registry->Register(GetCount);
106106
registry->Register(GetCountBigInt);
107107
registry->Register(GetExceeds);
@@ -133,7 +133,7 @@ void HistogramImpl::RegisterExternalReferences(
133133
registry->Register(FastGetExceeds);
134134
registry->Register(FastGetStddev);
135135
registry->Register(FastGetPercentile);
136-
is_registerd = true;
136+
is_registered = true;
137137
}
138138

139139
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
@@ -494,7 +494,7 @@ void ResetSignalHandlers() {
494494
continue;
495495
act.sa_handler = (nr == SIGPIPE || nr == SIGXFSZ) ? SIG_IGN : SIG_DFL;
496496
if (act.sa_handler == SIG_DFL) {
497-
// The only bad handler value we can inhert from before exec is SIG_IGN
497+
// The only bad handler value we can inherit from before exec is SIG_IGN
498498
// (any actual function pointer is reset to SIG_DFL during exec).
499499
// If that's the case, we want to reset it back to SIG_DFL.
500500
// 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
@@ -803,7 +803,7 @@ void MessagePort::OnMessage(MessageProcessingMode mode) {
803803
// The data_ could be freed or, the handle has been/is being closed.
804804
// A possible case for this, is transfer the MessagePort to another
805805
// context, it will call the constructor and trigger the async handle empty.
806-
// Because all data was sent from the preivous context.
806+
// Because all data was sent from the previous context.
807807
if (IsDetached()) return;
808808

809809
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)