mirror of https://github.com/nodejs/node.git
parent
f9f0e5c75c
commit
f71e4d8b43
|
@ -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';
|
||||||
|
|
Loading…
Reference in New Issue