MCPcopy Index your code
hub / github.com/nodejs/node / initializeSourceMapsHandlers

Function initializeSourceMapsHandlers

lib/internal/process/pre_execution.js:739–752  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

737}
738
739function initializeSourceMapsHandlers() {
740 const {
741 setSourceMapsSupport,
742 } = require('internal/source_map/source_map_cache');
743 const enabled = getOptionValue('--enable-source-maps');
744 setSourceMapsSupport(enabled, {
745 __proto__: null,
746 // TODO(legendecas): In order to smoothly improve the source map support,
747 // skip source maps in node_modules and generated code with
748 // `--enable-source-maps` in a semver major version.
749 nodeModules: enabled,
750 generatedCode: enabled,
751 });
752}
753
754function initializeFrozenIntrinsics() {
755 if (getOptionValue('--frozen-intrinsics')) {

Callers 1

prepareExecutionFunction · 0.85

Calls 3

getOptionValueFunction · 0.85
setSourceMapsSupportFunction · 0.85
requireFunction · 0.50

Tested by

no test coverage detected