Browse Source

Simplify loading events.js

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
03dda31b75
  1. 12
      src/node.js

12
src/node.js

@ -116,13 +116,6 @@ var module = (function () {
return loadNative(id).exports;
}
// Event
var eventsFn = process.compile("(function (exports) {" + natives.events + "\n})",
"events");
var eventsModule = createInternalModule('events', eventsFn);
var events = eventsModule.exports;
// Modules
@ -528,6 +521,11 @@ var module = (function () {
})();
// Load events module in order to access prototype elements on process like
// process.addListener.
var events = module.requireNative('events');
// Signal Handlers
(function() {
var signalWatchers = {};

Loading…
Cancel
Save