Fix process.assert problem

Introduced in f9f0e5c75c
pull/5370/head
Ryan Dahl 2011-01-27 16:55:49 -08:00
parent f9f0e5c75c
commit f71e4d8b43
1 changed files with 2 additions and 1 deletions

View File

@ -2,6 +2,7 @@ var NativeModule = require('native_module');
var Script = process.binding('evals').Script; var Script = process.binding('evals').Script;
var runInThisContext = Script.runInThisContext; var runInThisContext = Script.runInThisContext;
var runInNewContext = Script.runInNewContext; var runInNewContext = Script.runInNewContext;
var assert = process.assert;
function Module(id, parent) { function Module(id, parent) {
this.id = id; this.id = id;
@ -213,7 +214,7 @@ Module.prototype.load = function(filename) {
debug('load ' + JSON.stringify(filename) + debug('load ' + JSON.stringify(filename) +
' for module ' + JSON.stringify(this.id)); ' for module ' + JSON.stringify(this.id));
process.assert(!this.loaded); assert(!this.loaded);
this.filename = filename; this.filename = filename;
var extension = path.extname(filename) || '.js'; var extension = path.extname(filename) || '.js';