Skip to content
This repository has been archived by the owner on Jul 29, 2023. It is now read-only.

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
meqativ committed Jul 3, 2023
1 parent 7324570 commit 11b3092
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/eval/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,9 @@ async function execute(rawArgs, ctx) {
errored,
};
if (!interaction.dontSaveResult) {
thisEvaluation.result = common.cloneWithout(result, [runs["history"], runs["sessionHistory"], vendetta.plugin.storage], "not saved");
thisEvaluation.result = common.cloneWithout(result, [window, runs["history"], runs["sessionHistory"], vendetta.plugin.storage], "not saved");

if (history.saveContext) thisEvaluation.context = common.cloneWithout(interaction, [runs["history"], runs["sessionHistory"], vendetta.plugin.storage], "not saved");
if (history.saveContext) thisEvaluation.context = common.cloneWithout(interaction, [window, runs["history"], runs["sessionHistory"], vendetta.plugin.storage], "not saved");
}
(() => {
if (!history.saveOnError && errored) return runs["failed"]++;
Expand Down Expand Up @@ -267,7 +267,7 @@ async function execute(rawArgs, ctx) {

if (errored) {
const { stack, trim } = outputSettings["errors"];
if (stack) processedResult = result.stack;
if (stack && result.stack !== undefined && typeof result.stack === "string") processedResult = result.stack;
if (trim) processedResult = processedResult.split(" at ?anon_0_?anon_0_evaluate")[0];
}

Expand Down

0 comments on commit 11b3092

Please sign in to comment.