src: fix typos

PR-URL: https://github.com/nodejs/node/pull/38845
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Khaidi Chu <i@2333.moe>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
This commit is contained in:
bl-ue authored and Richard Lau committed 2021-07-20 07:11:26 -04:00
1 parent e36d2a6d6a
commit 73e199d963
8 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -189,7 +189,7 @@ class BaseObject : public MemoryRetainer {
// Indicates whether MakeWeak() has been called.
bool wants_weak_jsobj = false;
// Indicates whether Detach() has been called. If that is the case, this
// object will be destryoed once the strong pointer count drops to zero.
// object will be destroyed once the strong pointer count drops to zero.
bool is_detached = false;
// Reference to the original BaseObject. This is used by weak pointers.
BaseObject* self = nullptr;
+1 -1
View File
@@ -1809,7 +1809,7 @@ void SetLocalAddress(const FunctionCallbackInfo<Value>& args) {
return;
}
} else {
// No second arg specifed
// No second arg specified
if (type0 == 4) {
memset(&addr1, 0, sizeof(addr1));
ares_set_local_ip6(channel->cares_channel(), addr1);
+1 -1
View File
@@ -355,7 +355,7 @@ void PrintLibuvHandleInformation(uv_loop_t* loop, FILE* stream) {
void* first_field = nullptr;
// `handle->data` might be any value, including `nullptr`, or something
// cast from a completely different type; therefore, check that it’s
// dereferencable first.
// dereferenceable first.
if (sym_ctx->IsMapped(handle->data))
first_field = *reinterpret_cast<void**>(handle->data);
+4 -4
View File
@@ -248,7 +248,7 @@ class RefBase : protected Finalizer, RefTracker {
delete reference;
} else {
// defer until finalizer runs as
// it may alread be queued
// it may already be queued
reference->_delete_self = true;
}
}
@@ -416,7 +416,7 @@ class Reference : public RefBase {
inline void SetWeak() {
if (_secondPassParameter == nullptr) {
// This means that the Reference has already been processed
// by the second pass calback, so its already been Finalized, do
// by the second pass callback, so its already been Finalized, do
// nothing
return;
}
@@ -455,9 +455,9 @@ class Reference : public RefBase {
// second pass callback task. We have to make sure that parameter is kept
// alive until the second pass callback is been invoked. In order to do
// this and still allow our code to Finalize/delete the Reference during
// shutdown we have to use a seperately allocated parameter instead
// shutdown we have to use a separately allocated parameter instead
// of a parameter within the Reference object itself. This is what
// is stored in _secondPassParameter and it is alocated in the
// is stored in _secondPassParameter and it is allocated in the
// constructor for the Reference.
static void SecondPassCallback(
const v8::WeakCallbackInfo<SecondPassCallParameterRef>& data) {
+1 -1
View File
@@ -3101,7 +3101,7 @@ void Initialize(Local<Object> target,
Local<Object> constants = Object::New(isolate);
// This does alocate one more slot than needed but it's not used.
// This does allocate one more slot than needed but it's not used.
#define V(name) FIXED_ONE_BYTE_STRING(isolate, #name),
Local<Value> error_code_names[] = {
HTTP2_ERROR_CODES(V)
+1 -1
View File
@@ -484,7 +484,7 @@ void ConverterObject::Decode(const FunctionCallbackInfo<Value>& args) {
}
ret = ToBufferEndian(env, &result);
if (omit_initial_bom && !ret.IsEmpty()) {
// Peform `ret = ret.slice(2)`.
// Perform `ret = ret.slice(2)`.
CHECK(ret.ToLocalChecked()->IsUint8Array());
Local<Uint8Array> orig_ret = ret.ToLocalChecked().As<Uint8Array>();
ret = Buffer::New(env,
+1 -1
View File
@@ -736,7 +736,7 @@ void MessagePort::OnMessage() {
// interruption that were already present when the OnMessage() call was
// first triggered, but at least 1000 messages because otherwise the
// overhead of repeatedly triggering the uv_async_t instance becomes
// noticable, at least on Windows.
// noticeable, at least on Windows.
// (That might require more investigation by somebody more familiar with
// Windows.)
TriggerAsync();
+1 -1
View File
@@ -406,7 +406,7 @@ class MaybeStackBuffer {
buf_[length] = T();
}
// Make derefencing this object return nullptr.
// Make dereferencing this object return nullptr.
// This method can be called multiple times throughout the lifetime of the
// buffer, but once this has been called AllocateSufficientStorage() cannot
// be used.