Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Commit

Permalink
chakrashim,lib,test: fix lint errors
Browse files Browse the repository at this point in the history
* Fixed a bunch of issues with whitespace around comments
* Ignored lint issues in `test-util-inspect.js` that seemed to be false
  positives.
  • Loading branch information
kfarnung committed Apr 10, 2018
1 parent 725fc80 commit 74324ce
Show file tree
Hide file tree
Showing 6 changed files with 107 additions and 111 deletions.
2 changes: 1 addition & 1 deletion deps/chakrashim/lib/chakra_shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
};

StackFrame.prototype.getTypeName = function() {
//TODO : Fix this
// TODO : Fix this
return this.functionName;
};

Expand Down
4 changes: 2 additions & 2 deletions lib/assert.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const { isSet, isMap, isDate, isRegExp } = process.binding('util');
const { objectToString } = require('internal/util');
const { isArrayBufferView } = require('internal/util/types');
const errors = require('internal/errors');
const trace_mgr = require('trace_mgr'); //ENABLE_TTD
const trace_mgr = require('trace_mgr'); // ENABLE_TTD

// The assert module provides functions that throw
// AssertionError's when particular conditions are not met. The
Expand All @@ -50,7 +50,7 @@ function innerFail(actual, expected, message, operator, stackStartFunction) {
}

function fail(actual, expected, message, operator, stackStartFunction) {
trace_mgr.emitTrace('emitOnAssert'); //ENABLE_TTD
trace_mgr.emitTrace('emitOnAssert'); // ENABLE_TTD

if (arguments.length === 1)
message = actual;
Expand Down
6 changes: 3 additions & 3 deletions lib/console.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

const util = require('util');
const kCounts = Symbol('counts');
const trace_mgr = require('trace_mgr'); //ENABLE_TTD
const trace_mgr = require('trace_mgr'); // ENABLE_TTD

// Track amount of indentation required via `console.group()`.
const kGroupIndent = Symbol('groupIndent');
Expand Down Expand Up @@ -147,7 +147,7 @@ Console.prototype.warn = function warn(...args) {
this._stderrErrorHandler,
this[kGroupIndent]);

trace_mgr.emitTrace('emitOnLogWarn'); //ENABLE_TTD
trace_mgr.emitTrace('emitOnLogWarn'); // ENABLE_TTD
};


Expand All @@ -158,7 +158,7 @@ Console.prototype.error = function error(...args) {
this._stderrErrorHandler,
this[kGroupIndent]);

trace_mgr.emitTrace('emitOnLogError'); //ENABLE_TTD
trace_mgr.emitTrace('emitOnLogError'); // ENABLE_TTD
};

Console.prototype.dir = function dir(object, options) {
Expand Down
8 changes: 4 additions & 4 deletions lib/internal/process.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function setupKillAndExit() {
process.emit('exit', process.exitCode || 0);
}

require('trace_mgr').onExitHandler(process.exitCode || 0); //ENABLE_TTD
require('trace_mgr').onExitHandler(process.exitCode || 0); // ENABLE_TTD
process.reallyExit(process.exitCode || 0);
};

Expand Down Expand Up @@ -208,10 +208,10 @@ function setupSignalHandlers() {
wrap.unref();

if (type === 'SIGINT' && global.enabledDiagnosticsTrace) {
//TODO: this is probably a little over complicated
// TODO: this is probably a little over complicated
// -- should unify this and ttdSigIntHandler setup below
// -- ttdSigIntHandler will emit event after it runs
wrap.onsignal = function() { }; //ENABLE_TTD
wrap.onsignal = function() { }; // ENABLE_TTD
} else {
wrap.onsignal = function() { process.emit(type); };
}
Expand All @@ -234,7 +234,7 @@ function setupSignalHandlers() {
}
});

//ENABLE_TTD
// ENABLE_TTD
if (global.enabledDiagnosticsTrace) {
(function() {
const Signal = process.binding('signal_wrap').Signal;
Expand Down
Loading

0 comments on commit 74324ce

Please sign in to comment.