Remove unneeded function wrappers
This commit is contained in:
parent
174a3a9a08
commit
99e19aa398
10
lib/net.js
10
lib/net.js
@ -287,12 +287,10 @@ function setImplmentationMethods (self) {
|
||||
// calling emit() after recvMsg() has been called again and end up
|
||||
// emitting null (or another FD).
|
||||
if (recvMsg.fd !== null) {
|
||||
(function () {
|
||||
var fd = recvMsg.fd;
|
||||
process.nextTick(function () {
|
||||
self.emit('fd', fd);
|
||||
});
|
||||
})();
|
||||
var fd = recvMsg.fd;
|
||||
process.nextTick(function () {
|
||||
self.emit('fd', fd);
|
||||
});
|
||||
}
|
||||
|
||||
return bytesRead;
|
||||
|
@ -616,9 +616,7 @@ if (process.argv[1]) {
|
||||
}
|
||||
// REMOVEME: nextTick should not be necessary. This hack to get
|
||||
// test/simple/test-exception-handler2.js working.
|
||||
process.nextTick(function() {
|
||||
module.runMain();
|
||||
});
|
||||
process.nextTick(module.runMain);
|
||||
|
||||
} else if (process._eval) {
|
||||
// -e, --eval
|
||||
|
@ -9,7 +9,6 @@ ReferenceError: foo is not defined
|
||||
at Module._compile (node.js:*)
|
||||
at Object..js (node.js:*)
|
||||
at Module.load (node.js:*)
|
||||
at Object.runMain (node.js:*)
|
||||
at Array.<anonymous> (node.js:*)
|
||||
at EventEmitter._tickCallback (node.js:*)
|
||||
at node.js:*
|
||||
|
Loading…
x
Reference in New Issue
Block a user