node-eval icon indicating copy to clipboard operation
node-eval copied to clipboard

Should not be logging.

Open reggi opened this issue 9 years ago • 1 comments

I'm not sure whats causing this but when I run this, it logs the error below. The try should prevent any writing to stdout / stderr. This is really a pain. @pierrec any ideas on what could be causing it?

var _eval = require('eval')

try {
  _eval("require('missing-repo')", 'require-file.js', {}, true)
} catch (e) {

}

Logs this:


module.js:338
    throw err;

reggi avatar Aug 14 '15 05:08 reggi

require-like doesn't log anything :(

var requireLike = require('require-like')
var myRequire = requireLike(__dirname + '/lib/bar.js')

try {
  var myFoo = myRequire('./foo.js')
} catch (e) {

}

reggi avatar Aug 14 '15 06:08 reggi