mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-04-11 03:00:13 -04:00
Keep REPL running on runtime errors
This commit is contained in:
@@ -24,11 +24,11 @@
|
||||
bare: true,
|
||||
locals: Object.keys(context)
|
||||
});
|
||||
return cb(null, vm.runInContext(js, context, filename));
|
||||
} catch (_error) {
|
||||
err = _error;
|
||||
console.log(prettyErrorMessage(err, filename, input, true));
|
||||
return cb(prettyErrorMessage(err, filename, input, true));
|
||||
}
|
||||
return cb(null, vm.runInContext(js, context, filename));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user