Skip to content

Commit

Permalink
tools: using source.text instead of tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
SirR4T committed Jan 19, 2018
1 parent 1399bf5 commit bd452d5
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 18 deletions.
4 changes: 2 additions & 2 deletions lib/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function createWriteErrorHandler(stream) {
// If there was an error, it will be emitted on `stream` as
// an `error` event. Adding a `once` listener will keep that error
// from becoming an uncaught exception, but since the handler is
// removed after the event, non-console.* writes wonโ€™t be affected.
// removed after the event, non-console.* writes won't be affected.
// we are only adding noop if there is no one else listening for 'error'
if (stream.listenerCount('error') === 0) {
stream.on('error', noop);
Expand Down Expand Up @@ -125,7 +125,7 @@ function write(ignoreErrors, stream, string, errorhandler, groupIndent) {
// even in edge cases such as low stack space.
if (e.message === MAX_STACK_MESSAGE && e.name === 'RangeError')
throw e;
// Sorry, thereโ€™s no proper way to pass along the error here.
// Sorry, there's no proper way to pass along the error here.
} finally {
stream.removeListener('error', noop);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/http2/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1885,7 +1885,7 @@ function processRespondWithFD(self, fd, headers, offset = 0, length = -1,
return;
}
// exact length of the file doesn't matter here, since the
// stream is closing anyway โ€” just use 1 to signify that
// stream is closing anyway - just use 1 to signify that
// a write does exist
trackWriteState(self, 1);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/internal/test/unicode.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
// This module exists entirely for regression testing purposes.
// See `test/parallel/test-internal-unicode.js`.

module.exports = 'โœ“';
module.exports = 'โœ“'; // eslint-disable-line
2 changes: 1 addition & 1 deletion lib/stream.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ try {
try {
Stream._isUint8Array = process.binding('util').isUint8Array;
} catch (e) {
// This throws for Node < 4.2.0 because thereโ€™s no util binding and
// This throws for Node < 4.2.0 because there's no util binding and
// returns undefined for Node < 7.4.0.
}
}
Expand Down
2 changes: 2 additions & 0 deletions lib/timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ const Timeout = timerInternals.Timeout;
// TimerWrap C++ handle, which makes the call after the duration to process the
// list it is attached to.
//
// eslint-disable non-ascii-character
//
// โ•”โ•โ•โ•โ• > Object Map
// โ•‘
Expand All @@ -118,6 +119,7 @@ const Timeout = timerInternals.Timeout;
// โ•‘
// โ•šโ•โ•โ•โ• > Linked List
//
// eslint-enable non-ascii-character
//
// With this, virtually constant-time insertion (append), removal, and timeout
// is possible in the JavaScript layer. Any one list of timers is able to be
Expand Down
2 changes: 1 addition & 1 deletion lib/zlib.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ Zlib.prototype.flush = function flush(kind, callback) {
this._scheduledFlushFlag = maxFlush(kind, this._scheduledFlushFlag);

// If a callback was passed, always register a new `drain` + flush handler,
// mostly because thatโ€™s simpler and flush callbacks piling up is a rare
// mostly because that's simpler and flush callbacks piling up is a rare
// thing anyway.
if (!alreadyHadFlushScheduled || callback) {
const drainHandler = () => this.flush(this._scheduledFlushFlag, callback);
Expand Down