This commit is contained in:
Dragon Fire
2024-05-06 00:58:51 -04:00
parent b26dda1955
commit 4e7793685c
+2 -2
View File
@@ -77,8 +77,8 @@ module.exports = class EvalCommand extends Command {
}
}
makeResultMessages(result, hrDiff, input = null, lang = 'javascript') {
const inspected = util.inspect(result, { depth: 0 })
makeResultMessages(result, hrDiff, input = null, lang = 'javascript', inspect = true) {
const inspected = (inspect ? util.inspect(result, { depth: 0 }) : result)
.replace(nlPattern, '\n')
.replace(this.sensitivePattern, '--snip--');
const split = inspected.split('\n');