summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgengjiawen <technicalcute@gmail.com>2019-05-06 21:58:16 +0800
committerDaniel Bevenius <daniel.bevenius@gmail.com>2019-05-09 06:31:02 +0200
commit3b48ce6ccfb39b72a446fad06b56d29dabe09b05 (patch)
tree75b6d022189523e25d9176fa9021ab1ba01c85ae
parent422e8f762873aef4a37185f3237c0d666c929d8e (diff)
downloadandroid-node-v8-3b48ce6ccfb39b72a446fad06b56d29dabe09b05.tar.gz
android-node-v8-3b48ce6ccfb39b72a446fad06b56d29dabe09b05.tar.bz2
android-node-v8-3b48ce6ccfb39b72a446fad06b56d29dabe09b05.zip
src: fix typos
PR-URL: https://github.com/nodejs/node/pull/27580 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
-rw-r--r--src/async_wrap.h2
-rw-r--r--src/env.h2
-rw-r--r--src/node.cc2
-rw-r--r--src/node_main_instance.h2
-rw-r--r--src/node_native_module_env.cc2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/async_wrap.h b/src/async_wrap.h
index 20134f4a7b..3a8789f89b 100644
--- a/src/async_wrap.h
+++ b/src/async_wrap.h
@@ -111,7 +111,7 @@ class AsyncWrap : public BaseObject {
ProviderType provider,
double execution_async_id = kInvalidAsyncId);
- // This constructor creates a reuseable instance where user is responsible
+ // This constructor creates a reusable instance where user is responsible
// to call set_provider_type() and AsyncReset() before use.
AsyncWrap(Environment* env, v8::Local<v8::Object> object);
diff --git a/src/env.h b/src/env.h
index a3c6ec3cc9..33800d8484 100644
--- a/src/env.h
+++ b/src/env.h
@@ -885,7 +885,7 @@ class Environment : public MemoryRetainer {
inline IsolateData* isolate_data() const;
- // Utilites that allocate memory using the Isolate's ArrayBuffer::Allocator.
+ // Utilities that allocate memory using the Isolate's ArrayBuffer::Allocator.
// In particular, using AllocateManaged() will provide a RAII-style object
// with easy conversion to `Buffer` and `ArrayBuffer` objects.
inline AllocatedBuffer AllocateManaged(size_t size, bool checked = true);
diff --git a/src/node.cc b/src/node.cc
index d611460f4f..ac0e7dfce3 100644
--- a/src/node.cc
+++ b/src/node.cc
@@ -330,7 +330,7 @@ MaybeLocal<Value> RunBootstrapping(Environment* env) {
return MaybeLocal<Value>();
// Make sure that no request or handle is created during bootstrap -
- // if necessary those should be done in pre-exeuction.
+ // if necessary those should be done in pre-execution.
// TODO(joyeecheung): print handles/requests before aborting
CHECK(env->req_wrap_queue()->IsEmpty());
CHECK(env->handle_wrap_queue()->IsEmpty());
diff --git a/src/node_main_instance.h b/src/node_main_instance.h
index 04ad277b8e..a971c899b8 100644
--- a/src/node_main_instance.h
+++ b/src/node_main_instance.h
@@ -15,7 +15,7 @@ namespace node {
// We may be able to create an abstract class to reuse some of the routines.
class NodeMainInstance {
public:
- // To create a main instance that does not own the isoalte,
+ // To create a main instance that does not own the isolate,
// The caller needs to do:
//
// Isolate* isolate = Isolate::Allocate();
diff --git a/src/node_native_module_env.cc b/src/node_native_module_env.cc
index 171c649a19..31536000fc 100644
--- a/src/node_native_module_env.cc
+++ b/src/node_native_module_env.cc
@@ -152,7 +152,7 @@ MaybeLocal<Function> NativeModuleEnv::LookupAndCompile(
}
// TODO(joyeecheung): It is somewhat confusing that Class::Initialize
-// is used to initilaize to the binding, but it is the current convention.
+// is used to initialize to the binding, but it is the current convention.
// Rename this across the code base to something that makes more sense.
void NativeModuleEnv::Initialize(Local<Object> target,
Local<Value> unused,