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

Commit 1753873

Browse files
committed
lib,src,test: fixing lint errors
PR-URL: #454 Reviewed-By: Taylor Woll <tawoll@ntdev.microsoft.com>
1 parent 822d967 commit 1753873

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

lib/internal/bootstrap_node.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -396,8 +396,8 @@
396396
if (exceptionHandlerState.captureFn !== null) {
397397
exceptionHandlerState.captureFn(er);
398398
} else if (!process.emit('uncaughtException', er)) {
399-
//ENABLE_TTD
400-
NativeModule.require('trace_mgr').onUncaughtExceptionHandler();
399+
//ENABLE_TTD
400+
NativeModule.require('trace_mgr').onUncaughtExceptionHandler();
401401

402402
// If someone handled it, then great. otherwise, die in C++ land
403403
// since that means that we'll exit the process, emit the 'exit' event

lib/internal/process.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ function setupSignalHandlers() {
238238
process.emit('SIGINT');
239239
};
240240

241-
const signum = constants['SIGINT'];
241+
const signum = constants.SIGINT;
242242
const err = wrap.start(signum);
243243
if (err) {
244244
wrap.close();

lib/trace_mgr.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,11 @@ function updateGlobalSampleStats(eventKind) {
263263
currentSampleRate[eventKind] *= emitOptions.backoffFactors[eventKind];
264264

265265
var updateTime = new Date();
266-
emitMinTimeValue['emitOnLogWarn'] = new Date(updateTime);
267-
emitMinTimeValue['emitOnLogError'] = new Date(updateTime);
266+
emitMinTimeValue.emitOnLogWarn = new Date(updateTime);
267+
emitMinTimeValue.emitOnLogError = new Date(updateTime);
268268

269269
if (eventKind === 'emitOnAssert') {
270-
emitMinTimeValue['emitOnAssert'] = updateTime;
270+
emitMinTimeValue.emitOnAssert = updateTime;
271271
}
272272
}
273273

src/node_file.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ namespace node {
4646
void FillStatsArray(v8::Local<v8::Float64Array> fields_array,
4747
const uv_stat_t* s,
4848
int offset) {
49-
5049
Local<v8::ArrayBuffer> ab = fields_array->Buffer();
5150
double* fields = static_cast<double*>(ab->GetContents().Data()) + offset;
5251

test/parallel/test-uv-binding-constant.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ keys.forEach((key) => {
1212
if (key.startsWith('UV_')) {
1313
const val = uv[key];
1414
assert.throws(() => uv[key] = 1,
15-
common.engineSpecificMessage({
16-
v8: /^TypeError: Cannot assign to read only property/,
17-
chakracore: /^TypeError: Assignment to read-only properties is not allowed in strict mode$/
18-
})
15+
common.engineSpecificMessage({
16+
v8: /^TypeError: Cannot assign to read only property/,
17+
chakracore: /^TypeError: Assignment to read-only properties is not allowed in strict mode$/
18+
})
1919
);
2020
assert.strictEqual(uv[key], val);
2121
}

0 commit comments

Comments
 (0)