Skip to content

Commit

Permalink
Use process.mainModule.
Browse files Browse the repository at this point in the history
  • Loading branch information
flatheadmill committed May 27, 2016
1 parent 9325d0b commit 0085cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arguable.js
Expand Up @@ -27,7 +27,7 @@ module.exports = function (module, source, program) {
createProgram(source, env, argv, io, program, callback)
return io
}
if (module === require.main) {
if (module === process.mainModule) {
invoke(process.env, process.argv.slice(2), {
// No. Stop! There is no `process.stdio`. Do not addd one. (Again.)
stdout: process.stdout,
Expand Down

0 comments on commit 0085cfc

Please sign in to comment.