another fix attempt on eval
parent
5ce5b7f64d
commit
c177fb88ee
|
@ -25,6 +25,9 @@ export default class Eval extends Command {
|
|||
if (typeof evaled === 'object') {
|
||||
evaled = inspect(evaled, { depth: 0 });
|
||||
}
|
||||
if (evaled === undefined) {
|
||||
evaled = 'undefined';
|
||||
}
|
||||
} catch (error) {
|
||||
evaled = error.stack;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue