This commit is contained in:
Erik 2021-11-29 12:29:09 +02:00
parent 62d5eaae5c
commit 21a96ea481
No known key found for this signature in database
GPG Key ID: FEFF4B220DDF5589

View File

@ -19,7 +19,7 @@ class Eval extends Command {
try {
let evaled = eval(clean); // eslint-disable-line no-eval
if (evaled instanceof Promise) await evaled;
if (evaled instanceof Promise) evaled = await evaled;
if (typeof evaled !== 'string') evaled = inspect(evaled);
evaled = evaled