0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test
Tristian Flanagan dfee4e3712 module: fix column offsets in errors
Because Node modules are wrapped, errors on the first line
of a file leak the wrapper to the user and report the wrong
column number. This commit adds a line break to the module
wrapper so that the first line is treated the same as all
other lines. To compensate for the additional line, a line
offset of -1 is also applied to errors.

Fixes: https://github.com/nodejs/node/issues/2860
PR-URL: https://github.com/nodejs/node/pull/2867
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
2015-11-20 16:26:24 -05:00
..
abort src: honor --abort_on_uncaught_exception flag 2015-09-17 15:25:25 -05:00
addons test: fix path to module for repl test on Windows 2015-11-15 16:33:11 -08:00
cctest
debugger debugger: introduce exec method for debugger 2015-11-17 12:11:40 -08:00
disabled test: replace deprecated util.debug() calls 2015-09-28 11:15:06 -07:00
fixtures module: fix column offsets in errors 2015-11-20 16:26:24 -05:00
gc
internet test: skip test if FreeBSD jail will break it 2015-11-16 07:03:09 -08:00
message test: remove flaky status from eval_messages test 2015-10-20 12:16:00 -07:00
parallel module: fix column offsets in errors 2015-11-20 16:26:24 -05:00
pummel test: skip/replace weak crypto tests in FIPS mode 2015-11-19 16:31:11 -05:00
sequential module: fix column offsets in errors 2015-11-20 16:26:24 -05:00
testpy
timers
.eslintrc test: make common.js mandatory via linting rule 2015-10-06 15:11:58 -07:00
common.js test: move test-specific function out of common 2015-11-16 22:37:32 -08:00