summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoman Reiss <me@silverwind.io>2017-06-16 17:49:20 +0200
committerRoman Reiss <me@silverwind.io>2017-06-17 19:17:46 +0200
commitecf6a46d98a5d73fb9f98f10a634c786b60aea09 (patch)
tree1817ee54c89ca9972f1d92feda21bddd3431fd8e /src
parent7bdb5ca6207dbfc2ef9b253dd68588c3cf8b1cff (diff)
downloadandroid-node-v8-ecf6a46d98a5d73fb9f98f10a634c786b60aea09.tar.gz
android-node-v8-ecf6a46d98a5d73fb9f98f10a634c786b60aea09.tar.bz2
android-node-v8-ecf6a46d98a5d73fb9f98f10a634c786b60aea09.zip
src,lib,test,doc: correct misspellings
PR-URL: https://github.com/nodejs/node/pull/13719 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/node_api.cc2
-rw-r--r--src/node_debug_options.cc2
-rw-r--r--src/node_i18n.cc2
-rw-r--r--src/tracing/trace_event.h8
4 files changed, 7 insertions, 7 deletions
diff --git a/src/node_api.cc b/src/node_api.cc
index 0c8abd0998..8978997480 100644
--- a/src/node_api.cc
+++ b/src/node_api.cc
@@ -2546,7 +2546,7 @@ napi_status napi_create_arraybuffer(napi_env env,
v8::ArrayBuffer::New(isolate, byte_length);
// Optionally return a pointer to the buffer's data, to avoid another call to
- // retreive it.
+ // retrieve it.
if (data != nullptr) {
*data = buffer->GetContents().Data();
}
diff --git a/src/node_debug_options.cc b/src/node_debug_options.cc
index d82e92170a..3ec7731320 100644
--- a/src/node_debug_options.cc
+++ b/src/node_debug_options.cc
@@ -78,7 +78,7 @@ bool DebugOptions::ParseOption(const char* argv0, const std::string& option) {
argument.clear();
}
- // Note that --debug-port and --debug-brk in conjuction with --inspect
+ // Note that --debug-port and --debug-brk in conjunction with --inspect
// work but are undocumented.
// --debug is no longer valid.
// Ref: https://github.com/nodejs/node/issues/12630
diff --git a/src/node_i18n.cc b/src/node_i18n.cc
index f35bf26855..44d94d6255 100644
--- a/src/node_i18n.cc
+++ b/src/node_i18n.cc
@@ -515,7 +515,7 @@ int32_t ToASCII(MaybeStackBuffer<char>* buf,
// In UTS #46 which specifies ToASCII, certain error conditions are
// configurable through options, and the WHATWG URL Standard promptly elects
- // to disable some of them to accomodate for real-world use cases.
+ // to disable some of them to accommodate for real-world use cases.
// Unfortunately, ICU4C's IDNA module does not support disabling some of
// these options through `options` above, and thus continues throwing
// unnecessary errors. To counter this situation, we just filter out the
diff --git a/src/tracing/trace_event.h b/src/tracing/trace_event.h
index 4e2b6f4e88..ac0c1f7578 100644
--- a/src/tracing/trace_event.h
+++ b/src/tracing/trace_event.h
@@ -396,13 +396,13 @@ static inline uint64_t AddTraceEventImpl(
const char* scope, uint64_t id, uint64_t bind_id, int32_t num_args,
const char** arg_names, const uint8_t* arg_types,
const uint64_t* arg_values, unsigned int flags) {
- std::unique_ptr<v8::ConvertableToTraceFormat> arg_convertables[2];
+ std::unique_ptr<v8::ConvertableToTraceFormat> arg_convertibles[2];
if (num_args > 0 && arg_types[0] == TRACE_VALUE_TYPE_CONVERTABLE) {
- arg_convertables[0].reset(reinterpret_cast<v8::ConvertableToTraceFormat*>(
+ arg_convertibles[0].reset(reinterpret_cast<v8::ConvertableToTraceFormat*>(
static_cast<intptr_t>(arg_values[0])));
}
if (num_args > 1 && arg_types[1] == TRACE_VALUE_TYPE_CONVERTABLE) {
- arg_convertables[1].reset(reinterpret_cast<v8::ConvertableToTraceFormat*>(
+ arg_convertibles[1].reset(reinterpret_cast<v8::ConvertableToTraceFormat*>(
static_cast<intptr_t>(arg_values[1])));
}
// DCHECK(num_args <= 2);
@@ -410,7 +410,7 @@ static inline uint64_t AddTraceEventImpl(
node::tracing::TraceEventHelper::GetCurrentPlatform();
return platform->AddTraceEvent(phase, category_group_enabled, name, scope, id,
bind_id, num_args, arg_names, arg_types,
- arg_values, arg_convertables, flags);
+ arg_values, arg_convertibles, flags);
}
// Define SetTraceValue for each allowed type. It stores the type and