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