From 78bb53b009e04c94f142aa3241b06c640395b170 Mon Sep 17 00:00:00 2001 From: Ryan Date: Tue, 1 Sep 2009 15:43:56 +0200 Subject: [PATCH] Set module.loaded=true for dll modules. --- src/node.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node.js b/src/node.js index 1533d39e0ee..ea159eac041 100644 --- a/src/node.js +++ b/src/node.js @@ -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 {