| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e36d2a6 commit 73e199d
8 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -189,7 +189,7 @@ class BaseObject : public MemoryRetainer { | |||
| 189 | 189 | // Indicates whether MakeWeak() has been called. | |
| 190 | 190 | bool wants_weak_jsobj = false; | |
| 191 | 191 | // Indicates whether Detach() has been called. If that is the case, this | |
| 192 | - // object will be destryoed once the strong pointer count drops to zero. | ||
| 192 | + // object will be destroyed once the strong pointer count drops to zero. | ||
| 193 | 193 | bool is_detached = false; | |
| 194 | 194 | // Reference to the original BaseObject. This is used by weak pointers. | |
| 195 | 195 | BaseObject* self = nullptr; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1809,7 +1809,7 @@ void SetLocalAddress(const FunctionCallbackInfo<Value>& args) { | |||
| 1809 | 1809 | return; | |
| 1810 | 1810 | } | |
| 1811 | 1811 | } else { | |
| 1812 | - // No second arg specifed | ||
| 1812 | + // No second arg specified | ||
| 1813 | 1813 | if (type0 == 4) { | |
| 1814 | 1814 | memset(&addr1, 0, sizeof(addr1)); | |
| 1815 | 1815 | ares_set_local_ip6(channel->cares_channel(), addr1); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -355,7 +355,7 @@ void PrintLibuvHandleInformation(uv_loop_t* loop, FILE* stream) { | |||
| 355 | 355 | void* first_field = nullptr; | |
| 356 | 356 | // `handle->data` might be any value, including `nullptr`, or something | |
| 357 | 357 | // cast from a completely different type; therefore, check that it’s | |
| 358 | - // dereferencable first. | ||
| 358 | + // dereferenceable first. | ||
| 359 | 359 | if (sym_ctx->IsMapped(handle->data)) | |
| 360 | 360 | first_field = *reinterpret_cast<void**>(handle->data); | |
| 361 | 361 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -248,7 +248,7 @@ class RefBase : protected Finalizer, RefTracker { | |||
| 248 | 248 | delete reference; | |
| 249 | 249 | } else { | |
| 250 | 250 | // defer until finalizer runs as | |
| 251 | - // it may alread be queued | ||
| 251 | + // it may already be queued | ||
| 252 | 252 | reference->_delete_self = true; | |
| 253 | 253 | } | |
| 254 | 254 | } | |
@@ -416,7 +416,7 @@ class Reference : public RefBase { | |||
| 416 | 416 | inline void SetWeak() { | |
| 417 | 417 | if (_secondPassParameter == nullptr) { | |
| 418 | 418 | // This means that the Reference has already been processed | |
| 419 | - // by the second pass calback, so its already been Finalized, do | ||
| 419 | + // by the second pass callback, so its already been Finalized, do | ||
| 420 | 420 | // nothing | |
| 421 | 421 | return; | |
| 422 | 422 | } | |
@@ -455,9 +455,9 @@ class Reference : public RefBase { | |||
| 455 | 455 | // second pass callback task. We have to make sure that parameter is kept | |
| 456 | 456 | // alive until the second pass callback is been invoked. In order to do | |
| 457 | 457 | // this and still allow our code to Finalize/delete the Reference during | |
| 458 | - // shutdown we have to use a seperately allocated parameter instead | ||
| 458 | + // shutdown we have to use a separately allocated parameter instead | ||
| 459 | 459 | // of a parameter within the Reference object itself. This is what | |
| 460 | - // is stored in _secondPassParameter and it is alocated in the | ||
| 460 | + // is stored in _secondPassParameter and it is allocated in the | ||
| 461 | 461 | // constructor for the Reference. | |
| 462 | 462 | static void SecondPassCallback( | |
| 463 | 463 | const v8::WeakCallbackInfo<SecondPassCallParameterRef>& data) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3101,7 +3101,7 @@ void Initialize(Local<Object> target, | |||
| 3101 | 3101 | ||
| 3102 | 3102 | Local<Object> constants = Object::New(isolate); | |
| 3103 | 3103 | ||
| 3104 | - // This does alocate one more slot than needed but it's not used. | ||
| 3104 | + // This does allocate one more slot than needed but it's not used. | ||
| 3105 | 3105 | #define V(name) FIXED_ONE_BYTE_STRING(isolate, #name), | |
| 3106 | 3106 | Local<Value> error_code_names[] = { | |
| 3107 | 3107 | HTTP2_ERROR_CODES(V) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -484,7 +484,7 @@ void ConverterObject::Decode(const FunctionCallbackInfo<Value>& args) { | |||
| 484 | 484 | } | |
| 485 | 485 | ret = ToBufferEndian(env, &result); | |
| 486 | 486 | if (omit_initial_bom && !ret.IsEmpty()) { | |
| 487 | - // Peform `ret = ret.slice(2)`. | ||
| 487 | + // Perform `ret = ret.slice(2)`. | ||
| 488 | 488 | CHECK(ret.ToLocalChecked()->IsUint8Array()); | |
| 489 | 489 | Local<Uint8Array> orig_ret = ret.ToLocalChecked().As<Uint8Array>(); | |
| 490 | 490 | ret = Buffer::New(env, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -736,7 +736,7 @@ void MessagePort::OnMessage() { | |||
| 736 | 736 | // interruption that were already present when the OnMessage() call was | |
| 737 | 737 | // first triggered, but at least 1000 messages because otherwise the | |
| 738 | 738 | // overhead of repeatedly triggering the uv_async_t instance becomes | |
| 739 | - // noticable, at least on Windows. | ||
| 739 | + // noticeable, at least on Windows. | ||
| 740 | 740 | // (That might require more investigation by somebody more familiar with | |
| 741 | 741 | // Windows.) | |
| 742 | 742 | TriggerAsync(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -406,7 +406,7 @@ class MaybeStackBuffer { | |||
| 406 | 406 | buf_[length] = T(); | |
| 407 | 407 | } | |
| 408 | 408 | ||
| 409 | - // Make derefencing this object return nullptr. | ||
| 409 | + // Make dereferencing this object return nullptr. | ||
| 410 | 410 | // This method can be called multiple times throughout the lifetime of the | |
| 411 | 411 | // buffer, but once this has been called AllocateSufficientStorage() cannot | |
| 412 | 412 | // be used. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments