Skip to content

Commit

Permalink
bootstrap: removes try-caatch and check for inspector
Browse files Browse the repository at this point in the history
  • Loading branch information
Shobhit Chittora authored and Trott committed Sep 23, 2019
1 parent 180959e commit bbb315d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/bootstrap/pre_execution.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ function setupCoverageHooks(dir) {
const coverageDirectory = resolve(cwd, dir);
const { sourceMapCacheToObject } = require('internal/source_map');

try {
if (process.features.inspector) {
internalBinding('profiler').setCoverageDirectory(coverageDirectory);
internalBinding('profiler').setSourceMapCacheGetter(sourceMapCacheToObject);
} catch {
} else {
process.emitWarning('The inspector is disabled, ' +
'coverage could not be collected',
'Warning');
Expand Down

0 comments on commit bbb315d

Please sign in to comment.