Skip to content

src: fix line numbers on core errors

Rodrigo Muino Tomonari requested to merge github/fork/cjihrig/line-nos into master

In dfee4e37, the module wrapper and line offset used when wrapping module code was changed to better report errors on the first line of modules. However, that commit did not update the runInThisContext() call used to execute the core modules, so their error line numbers have been off by one. This commit provides the correct lineOffset for core modules.

Refs: https://github.com/nodejs/node/pull/2867

Merge request reports

Loading