Set module.loaded=true for dll modules.

pull/5370/head
Ryan 2009-09-01 15:43:56 +02:00
parent ed9c3362ee
commit 78bb53b009
1 changed files with 1 additions and 0 deletions

View File

@ -105,6 +105,7 @@ node.Module.prototype.loadObject = function (callback) {
// file, store it to tmp then run dlopen on it.
node.fs.exists(self.filename, function (does_exist) {
if (does_exist) {
self.loaded = true;
node.dlopen(self.filename, self.target); // FIXME synchronus
loadPromise.emitSuccess([self.target]);
} else {