Skip to content
This repository has been archived by the owner on Jul 28, 2021. It is now read-only.

Commit

Permalink
fix(shell): stop throwing away errors
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Jan 2, 2019
1 parent a6daeb1 commit 1b507e8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/commands/shell.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@ async function shell (argv, opts) {
const mod = new Module(fname, null)
process.mainModule = mod
mod.id = '.'
try {
mod.load(fname)
} catch (err) {
delete Module._cache[fname]
}
mod.load(fname)
} else {
require('../node/index.js')
const { createRepl } = require('../node/repl.js')
Expand Down

0 comments on commit 1b507e8

Please sign in to comment.