| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 108ffdb commit f25cd4f
11 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -191,7 +191,7 @@ class BaseObject : public MemoryRetainer { | |||
| 191 | 191 | // Indicates whether MakeWeak() has been called. | |
| 192 | 192 | bool wants_weak_jsobj = false; | |
| 193 | 193 | // Indicates whether Detach() has been called. If that is the case, this | |
| 194 | - // object will be destryoed once the strong pointer count drops to zero. | ||
| 194 | + // object will be destroyed once the strong pointer count drops to zero. | ||
| 195 | 195 | bool is_detached = false; | |
| 196 | 196 | // Reference to the original BaseObject. This is used by weak pointers. | |
| 197 | 197 | 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 | |
|---|---|---|---|
@@ -908,7 +908,7 @@ class CleanupHookCallback { | |||
| 908 | 908 | ||
| 909 | 909 | struct PropInfo { | |
| 910 | 910 | std::string name; // name for debugging | |
| 911 | - size_t id; // In the list - in case there are any empty entires | ||
| 911 | + size_t id; // In the list - in case there are any empty entries | ||
| 912 | 912 | SnapshotIndex index; // In the snapshot | |
| 913 | 913 | }; | |
| 914 | 914 | ||
| 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 | |
|---|---|---|---|
@@ -1033,7 +1033,7 @@ InitializationResult InitializeOncePerProcess(int argc, char** argv) { | |||
| 1033 | 1033 | // command. If the path to this file is incorrect no error will be reported. | |
| 1034 | 1034 | // | |
| 1035 | 1035 | // For Node.js this will mean that EntropySource will be called by V8 as part | |
| 1036 | - // of its initalization process, and EntropySource will in turn call | ||
| 1036 | + // of its initialization process, and EntropySource will in turn call | ||
| 1037 | 1037 | // CheckEntropy. CheckEntropy will call RAND_status which will now always | |
| 1038 | 1038 | // return 0, leading to an endless loop and the node process will appear to | |
| 1039 | 1039 | // hang/freeze. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3189,7 +3189,7 @@ void Initialize(Local<Object> target, | |||
| 3189 | 3189 | ||
| 3190 | 3190 | Local<Object> constants = Object::New(isolate); | |
| 3191 | 3191 | ||
| 3192 | - // This does alocate one more slot than needed but it's not used. | ||
| 3192 | + // This does allocate one more slot than needed but it's not used. | ||
| 3193 | 3193 | #define V(name) FIXED_ONE_BYTE_STRING(isolate, #name), | |
| 3194 | 3194 | Local<Value> error_code_names[] = { | |
| 3195 | 3195 | HTTP2_ERROR_CODES(V) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -485,7 +485,7 @@ void ConverterObject::Decode(const FunctionCallbackInfo<Value>& args) { | |||
| 485 | 485 | } | |
| 486 | 486 | ret = ToBufferEndian(env, &result); | |
| 487 | 487 | if (omit_initial_bom && !ret.IsEmpty()) { | |
| 488 | - // Peform `ret = ret.slice(2)`. | ||
| 488 | + // Perform `ret = ret.slice(2)`. | ||
| 489 | 489 | CHECK(ret.ToLocalChecked()->IsUint8Array()); | |
| 490 | 490 | Local<Uint8Array> orig_ret = ret.ToLocalChecked().As<Uint8Array>(); | |
| 491 | 491 | ret = Buffer::New(env, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -162,7 +162,7 @@ MaybeLocal<Value> Message::Deserialize(Environment* env, | |||
| 162 | 162 | // If we gather a list of all message ports, and this transferred object | |
| 163 | 163 | // is a message port, add it to that list. This is a bit of an odd case | |
| 164 | 164 | // of special handling for MessagePorts (as opposed to applying to all | |
| 165 | - // transferables), but it's required for spec compliancy. | ||
| 165 | + // transferables), but it's required for spec compliance. | ||
| 166 | 166 | DCHECK((*port_list)->IsArray()); | |
| 167 | 167 | Local<Array> port_list_array = port_list->As<Array>(); | |
| 168 | 168 | Local<Object> obj = host_objects[i]->object(); | |
@@ -749,7 +749,7 @@ void MessagePort::OnMessage(MessageProcessingMode mode) { | |||
| 749 | 749 | // interruption that were already present when the OnMessage() call was | |
| 750 | 750 | // first triggered, but at least 1000 messages because otherwise the | |
| 751 | 751 | // overhead of repeatedly triggering the uv_async_t instance becomes | |
| 752 | - // noticable, at least on Windows. | ||
| 752 | + // noticeable, at least on Windows. | ||
| 753 | 753 | // (That might require more investigation by somebody more familiar with | |
| 754 | 754 | // Windows.) | |
| 755 | 755 | TriggerAsync(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -98,7 +98,7 @@ class SocketAddress : public MemoryRetainer { | |||
| 98 | 98 | // for this one. The addresses are a match if: | |
| 99 | 99 | // 1. They are the same family and match identically | |
| 100 | 100 | // 2. They are different family but match semantically ( | |
| 101 | - // for instance, an IPv4 addres in IPv6 notation) | ||
| 101 | + // for instance, an IPv4 address in IPv6 notation) | ||
| 102 | 102 | bool is_match(const SocketAddress& other) const; | |
| 103 | 103 | ||
| 104 | 104 | // Compares this SocketAddress to the given other SocketAddress. | |
| Back | FazBrowse Home | New Git URL |
0 commit comments