module,src: do not wrap modules with -1 lineOffset
authorcjihrig <cjihrig@gmail.com>
Tue, 15 Dec 2015 22:37:16 +0000 (17:37 -0500)
committerMyles Borins <mborins@us.ibm.com>
Thu, 21 Jan 2016 01:06:01 +0000 (17:06 -0800)
commit1408f7abb1bc97f420ea092ece92ac88bc061c4e
tree814fe88a8fbfe25222703e26941cdece12162746
parent8a0cc6442da1bc2e0805c7bd61a2de45f253ce26
module,src: do not wrap modules with -1 lineOffset

In b799a74709af69daf13901390df9428c4c38adfc and
dfee4e3712ac4673b5fc472a8f77ac65bdc65f87 the module wrapping
mechanism was changed for better error reporting. However,
the changes causes issues with debuggers and profilers. This
commit reverts the wrapping changes.

Fixes: https://github.com/nodejs/node/issues/4297
PR-URL: https://github.com/nodejs/node/pull/4298
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
lib/module.js
src/node.js
test/sequential/test-module-loading.js