diff --git a/lib/internal/process.js b/lib/internal/process.js index 0e822c9cff5..f6434e1669c 100644 --- a/lib/internal/process.js +++ b/lib/internal/process.js @@ -248,7 +248,7 @@ function setupSignalHandlers() { process.emit('SIGINT'); }; - const signum = constants['SIGINT']; + const signum = constants.SIGINT; const err = wrap.start(signum); if (err) { wrap.close(); diff --git a/lib/trace_mgr.js b/lib/trace_mgr.js index 51666ff166a..a622d2a1585 100644 --- a/lib/trace_mgr.js +++ b/lib/trace_mgr.js @@ -263,11 +263,11 @@ function updateGlobalSampleStats(eventKind) { currentSampleRate[eventKind] *= emitOptions.backoffFactors[eventKind]; var updateTime = new Date(); - emitMinTimeValue['emitOnLogWarn'] = new Date(updateTime); - emitMinTimeValue['emitOnLogError'] = new Date(updateTime); + emitMinTimeValue.emitOnLogWarn = new Date(updateTime); + emitMinTimeValue.emitOnLogError = new Date(updateTime); if (eventKind === 'emitOnAssert') { - emitMinTimeValue['emitOnAssert'] = updateTime; + emitMinTimeValue.emitOnAssert = updateTime; } } diff --git a/src/node.cc b/src/node.cc index b0d531d923d..b3deb67e440 100644 --- a/src/node.cc +++ b/src/node.cc @@ -124,7 +124,7 @@ bool s_doTTRecord = false; bool s_doTTReplay = false; bool s_doTTEnableDebug = false; size_t s_ttoptReplayUriLength = 0; -const char* s_ttoptReplayUri = NULL; +const char* s_ttoptReplayUri = nullptr; uint32_t s_ttdSnapInterval = 2000; uint32_t s_ttdSnapHistoryLength = 2; uint64_t s_ttdStartupMode = 0x1;