Skip to content

Commit e25afc3

Browse files
committed
Hack to fix module line numbers in stack traces.
This code is going to be refactored with the introduction of the "process" object. This is just temporary.
1 parent b27f8ba commit e25afc3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/node.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ node.Module.prototype.load = function (callback) {
8282
self.target.__include = function (path) { self.newChild(path, self.target); };
8383

8484
// create wrapper function
85-
var wrapper = "function (__filename) {\n"+
86-
" var onLoad;\n"+
87-
" var onExit;\n"+
88-
" var exports = this;\n"+
89-
" var require = this.__require;\n"+
90-
" var include = this.__include;\n"+
85+
var wrapper = "function (__filename) { "+
86+
" var onLoad; "+
87+
" var onExit; "+
88+
" var exports = this; "+
89+
" var require = this.__require; "+
90+
" var include = this.__include; "+
9191
content+
9292
"\n"+
9393
" this.__onLoad = onLoad;\n"+

0 commit comments

Comments
 (0)