| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -111,7 +111,7 @@ class AliasedBufferBase : public MemoryRetainer { | |||
| 111 | 111 | }; | |
| 112 | 112 | ||
| 113 | 113 | /** | |
| 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 | ||
| 115 | 115 | */ | |
| 116 | 116 | v8::Local<V8T> GetJSArray() const; | |
| 117 | 117 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -358,7 +358,7 @@ void CompileCacheHandler::Persist() { | |||
| 358 | 358 | // 2. v23.0.0-pre-arm64-5fad6d45-501 is the sub cache directory and | |
| 359 | 359 | // e7f8ef7f is the hash for the cache (see | |
| 360 | 360 | // 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. | ||
| 362 | 362 | uv_fs_t mkstemp_req; | |
| 363 | 363 | auto cleanup_mkstemp = | |
| 364 | 364 | OnScopeLeave([&mkstemp_req]() { uv_fs_req_cleanup(&mkstemp_req); }); | |
@@ -444,7 +444,7 @@ CompileCacheHandler::CompileCacheHandler(Environment* env) | |||
| 444 | 444 | ||
| 445 | 445 | // Directory structure: | |
| 446 | 446 | // - 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 | ||
| 448 | 448 | // - $FILENAME_AND_MODULE_TYPE_HASH.cache: a hash of filename + module type | |
| 449 | 449 | CompileCacheEnableResult CompileCacheHandler::Enable(Environment* env, | |
| 450 | 450 | const std::string& dir) { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2178,7 +2178,7 @@ inline size_t Environment::SelfSize() const { | |||
| 2178 | 2178 | } | |
| 2179 | 2179 | ||
| 2180 | 2180 | 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 | ||
| 2182 | 2182 | // by default. | |
| 2183 | 2183 | tracker->TrackField("isolate_data", isolate_data_); | |
| 2184 | 2184 | tracker->TrackField("destroy_async_id_list", destroy_async_id_list_); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -99,8 +99,8 @@ void HistogramImpl::AddMethods(Isolate* isolate, Local<FunctionTemplate> tmpl) { | |||
| 99 | 99 | ||
| 100 | 100 | void HistogramImpl::RegisterExternalReferences( | |
| 101 | 101 | ExternalReferenceRegistry* registry) { | |
| 102 | - static bool is_registerd = false; | ||
| 103 | - if (is_registerd) return; | ||
| 102 | + static bool is_registered = false; | ||
| 103 | + if (is_registered) return; | ||
| 104 | 104 | registry->Register(GetCount); | |
| 105 | 105 | registry->Register(GetCountBigInt); | |
| 106 | 106 | registry->Register(GetExceeds); | |
@@ -132,7 +132,7 @@ void HistogramImpl::RegisterExternalReferences( | |||
| 132 | 132 | registry->Register(FastGetExceeds); | |
| 133 | 133 | registry->Register(FastGetStddev); | |
| 134 | 134 | registry->Register(FastGetPercentile); | |
| 135 | - is_registerd = true; | ||
| 135 | + is_registered = true; | ||
| 136 | 136 | } | |
| 137 | 137 | ||
| 138 | 138 | HistogramBase::HistogramBase( | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -151,7 +151,7 @@ Local<PrimitiveArray> ModuleWrap::GetHostDefinedOptions( | |||
| 151 | 151 | } | |
| 152 | 152 | ||
| 153 | 153 | // new ModuleWrap(url, context, source, lineOffset, columnOffset[, cachedData]); | |
| 154 | - // new ModuleWrap(url, context, source, lineOffset, columOffset, | ||
| 154 | + // new ModuleWrap(url, context, source, lineOffset, columnOffset, | ||
| 155 | 155 | // idSymbol); | |
| 156 | 156 | // new ModuleWrap(url, context, exportNames, evaluationCallback[, cjsModule]) | |
| 157 | 157 | void ModuleWrap::New(const FunctionCallbackInfo<Value>& args) { | |
@@ -191,9 +191,9 @@ void ModuleWrap::New(const FunctionCallbackInfo<Value>& args) { | |||
| 191 | 191 | // cjsModule]) | |
| 192 | 192 | CHECK(args[3]->IsFunction()); | |
| 193 | 193 | } else { | |
| 194 | - // new ModuleWrap(url, context, source, lineOffset, columOffset[, | ||
| 194 | + // new ModuleWrap(url, context, source, lineOffset, columnOffset[, | ||
| 195 | 195 | // cachedData]); | |
| 196 | - // new ModuleWrap(url, context, source, lineOffset, columOffset, | ||
| 196 | + // new ModuleWrap(url, context, source, lineOffset, columnOffset, | ||
| 197 | 197 | // idSymbol); | |
| 198 | 198 | CHECK(args[2]->IsString()); | |
| 199 | 199 | CHECK(args[3]->IsNumber()); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -543,7 +543,7 @@ void ResetSignalHandlers() { | |||
| 543 | 543 | continue; | |
| 544 | 544 | act.sa_handler = (nr == SIGPIPE || nr == SIGXFSZ) ? SIG_IGN : SIG_DFL; | |
| 545 | 545 | 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 | ||
| 547 | 547 | // (any actual function pointer is reset to SIG_DFL during exec). | |
| 548 | 548 | // If that's the case, we want to reset it back to SIG_DFL. | |
| 549 | 549 | // However, it's also possible that an embeder (or an LD_PRELOAD-ed | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -802,7 +802,7 @@ void MessagePort::OnMessage(MessageProcessingMode mode) { | |||
| 802 | 802 | // The data_ could be freed or, the handle has been/is being closed. | |
| 803 | 803 | // A possible case for this, is transfer the MessagePort to another | |
| 804 | 804 | // 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. | ||
| 806 | 806 | if (IsDetached()) return; | |
| 807 | 807 | ||
| 808 | 808 | HandleScope handle_scope(env()->isolate()); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -69,7 +69,7 @@ ProcessRunner::ProcessRunner(std::shared_ptr<InitializationResultImpl> result, | |||
| 69 | 69 | command_args_ = { | |
| 70 | 70 | options_.file, "/d", "/s", "/c", "\"" + command_str + "\""}; | |
| 71 | 71 | } 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, | ||
| 73 | 73 | // so assume -c is the correct syntax (Unix-like shells use -c for this | |
| 74 | 74 | // purpose). | |
| 75 | 75 | command_args_ = {options_.file, "-c", command_str}; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -624,7 +624,7 @@ void Endpoint::InitPerContext(Realm* realm, Local<Object> target) { | |||
| 624 | 624 | #undef V | |
| 625 | 625 | ||
| 626 | 626 | #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 }; | ||
| 628 | 628 | NODE_DEFINE_CONSTANT(target, IDX_STATS_ENDPOINT_COUNT); | |
| 629 | 629 | #undef V | |
| 630 | 630 | ||
@@ -1521,7 +1521,7 @@ void Endpoint::Receive(const uv_buf_t& buf, | |||
| 1521 | 1521 | // packet with a non-standard CID length. | |
| 1522 | 1522 | if (UNLIKELY(pversion_cid.dcidlen > NGTCP2_MAX_CIDLEN || | |
| 1523 | 1523 | pversion_cid.scidlen > NGTCP2_MAX_CIDLEN)) { | |
| 1524 | - Debug(this, "Packet had incorrectly sized CIDs, igoring"); | ||
| 1524 | + Debug(this, "Packet had incorrectly sized CIDs, ignoring"); | ||
| 1525 | 1525 | return; // Ignore the packet! | |
| 1526 | 1526 | } | |
| 1527 | 1527 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -92,7 +92,7 @@ class Endpoint final : public AsyncWrap, public Packet::Listener { | |||
| 92 | 92 | // Similar to stateless resets, we enforce a limit on the number of retry | |
| 93 | 93 | // packets that can be generated and sent for a remote host. Generating | |
| 94 | 94 | // 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 | ||
| 96 | 96 | // retries, so limiting them helps prevent a DOS vector. | |
| 97 | 97 | uint64_t max_retries = DEFAULT_MAX_RETRY_LIMIT; | |
| 98 | 98 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments