diff options
author | bcoe <bencoe@google.com> | 2019-10-06 11:37:42 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-10-13 18:58:21 -0700 |
commit | 4ca61f40fed31d590e4d624551044fe7cc7efd42 (patch) | |
tree | 8bb59868ac3566ae37e0146578535ad042978790 /lib/internal/bootstrap/pre_execution.js | |
parent | f8f6a21580544146d5a8527333e1130b336dc094 (diff) | |
download | android-node-v8-4ca61f40fed31d590e4d624551044fe7cc7efd42.tar.gz android-node-v8-4ca61f40fed31d590e4d624551044fe7cc7efd42.tar.bz2 android-node-v8-4ca61f40fed31d590e4d624551044fe7cc7efd42.zip |
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/pre_execution.js')
-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 c1636d87f4..1126fbcdd7 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); } |