1
0
Fork 0

Inject process and console in Module.run.

This commit is contained in:
Alan Plum 2015-05-27 10:28:13 +02:00
parent 00cbb400fd
commit e9c5b87ea5
1 changed files with 2 additions and 0 deletions

View File

@ -1362,6 +1362,8 @@ function require (path) {
print: internal.print,
module: this,
exports: this.exports,
process: require('process'),
console: require('console'),
require: function (path) {
return self.require(path);
}