summaryrefslogtreecommitdiff
path: root/lib/domain.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/domain.js')
-rw-r--r--lib/domain.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/domain.js b/lib/domain.js
index 5db92e8432..da116e60b3 100644
--- a/lib/domain.js
+++ b/lib/domain.js
@@ -52,7 +52,7 @@ const pairing = new Map();
const asyncHook = createHook({
init(asyncId, type, triggerAsyncId, resource) {
if (process.domain !== null && process.domain !== undefined) {
- // if this operation is created while in a domain, let's mark it
+ // If this operation is created while in a domain, let's mark it
pairing.set(asyncId, process.domain);
resource.domain = process.domain;
}
@@ -180,7 +180,7 @@ exports.create = exports.createDomain = function createDomain() {
return new Domain();
};
-// the active domain is always the one that we're currently in.
+// The active domain is always the one that we're currently in.
exports.active = null;
Domain.prototype.members = undefined;
@@ -219,7 +219,7 @@ Domain.prototype._errorHandler = function(er) {
}
}
} else {
- // wrap this in a try/catch so we don't get infinite throwing
+ // Wrap this in a try/catch so we don't get infinite throwing
try {
// One of three things will happen here.
//
@@ -259,7 +259,7 @@ Domain.prototype._errorHandler = function(er) {
Domain.prototype.enter = function() {
- // note that this might be a no-op, but we still need
+ // Note that this might be a no-op, but we still need
// to push it onto the stack so that we can pop it later.
exports.active = process.domain = this;
stack.push(this);
@@ -268,7 +268,7 @@ Domain.prototype.enter = function() {
Domain.prototype.exit = function() {
- // don't do anything if this domain is not on the stack.
+ // Don't do anything if this domain is not on the stack.
var index = stack.lastIndexOf(this);
if (index === -1) return;