another fix attempt on eval

merge-requests/1/merge
Matthew 2019-10-27 21:54:22 -04:00
parent 5ce5b7f64d
commit c177fb88ee
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,9 @@ export default class Eval extends Command {
if (typeof evaled === 'object') { if (typeof evaled === 'object') {
evaled = inspect(evaled, { depth: 0 }); evaled = inspect(evaled, { depth: 0 });
} }
if (evaled === undefined) {
evaled = 'undefined';
}
} catch (error) { } catch (error) {
evaled = error.stack; evaled = error.stack;
} }