diff --git a/src/node.js b/src/node.js index 059c65f7df19f0..c00d915ac19a0b 100644 --- a/src/node.js +++ b/src/node.js @@ -966,7 +966,7 @@ var source = NativeModule.getSource(this.id); source = NativeModule.wrap(source); - var fn = runInThisContext(source, { filename: this.filename }); + var fn = runInThisContext(source, { filename: this.filename, lineOffset: -1 }); fn(this.exports, NativeModule.require, this, this.filename); this.loaded = true;