diff options
author | bcoe <bencoe@google.com> | 2019-10-06 21:37:42 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-10-14 04:58:21 +0300 |
commit | 4ca61f40fed31d590e4d624551044fe7cc7efd42 (patch) | |
tree | 8bb59868ac3566ae37e0146578535ad042978790 /lib/internal/bootstrap | |
parent | f8f6a21580544146d5a8527333e1130b336dc094 (diff) |
process: add lineLength to source-map-cache
Without the line lengths of in-memory transpiled source, it's not
possible to convert from byte ofsets to line/column offsets.
PR-URL: https://github.com/nodejs/node/pull/29863
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: David Carlier <devnexen@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/internal/bootstrap')
-rw-r--r-- | lib/internal/bootstrap/pre_execution.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/bootstrap/pre_execution.js b/lib/internal/bootstrap/pre_execution.js index c1636d87f42..1126fbcdd71 100644 --- a/lib/internal/bootstrap/pre_execution.js +++ b/lib/internal/bootstrap/pre_execution.js @@ -25,7 +25,7 @@ function prepareMainThreadExecution(expandArgv1 = false) { // prepareStackTrace method, replacing the default in errors.js. if (getOptionValue('--enable-source-maps')) { const { prepareStackTrace } = - require('internal/source_map/source_map_cache'); + require('internal/source_map/prepare_stack_trace'); const { setPrepareStackTraceCallback } = internalBinding('errors'); setPrepareStackTraceCallback(prepareStackTrace); } |