From f71e4d8b431f53dc68d729b8eae3c610663e06de Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 27 Jan 2011 16:55:49 -0800 Subject: [PATCH] Fix process.assert problem Introduced in f9f0e5c75c6a6fa32dd91f242c7463d467f6dcd4 --- lib/module.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/module.js b/lib/module.js index 698483f7293..c94d92930c5 100644 --- a/lib/module.js +++ b/lib/module.js @@ -2,6 +2,7 @@ var NativeModule = require('native_module'); var Script = process.binding('evals').Script; var runInThisContext = Script.runInThisContext; var runInNewContext = Script.runInNewContext; +var assert = process.assert; function Module(id, parent) { this.id = id; @@ -213,7 +214,7 @@ Module.prototype.load = function(filename) { debug('load ' + JSON.stringify(filename) + ' for module ' + JSON.stringify(this.id)); - process.assert(!this.loaded); + assert(!this.loaded); this.filename = filename; var extension = path.extname(filename) || '.js';