namespace XFESystem.Browser;
public sealed record JavaScriptResult(bool Success, string Value, string ConsoleOutput, string Error)
{
public bool BudgetExceeded { get; init; }
public string Text => Success
? string.IsNullOrEmpty(ConsoleOutput) ? Value : string.IsNullOrEmpty(Value) || Value == "undefined"
? ConsoleOutput : ConsoleOutput + "\n" + Value
: (string.IsNullOrEmpty(ConsoleOutput) ? string.Empty : ConsoleOutput + "\n") + "JavaScript error: " + Error;
}
namespace XFESystem.Browser;
public sealed record JavaScriptResult(bool Success, string Value, string ConsoleOutput, string Error)
{
public bool BudgetExceeded { get; init; }
public string Text => Success
? string.IsNullOrEmpty(ConsoleOutput) ? Value : string.IsNullOrEmpty(Value) || Value == "undefined"
? ConsoleOutput : ConsoleOutput + "\n" + Value
: (string.IsNullOrEmpty(ConsoleOutput) ? string.Empty : ConsoleOutput + "\n") + "JavaScript error: " + Error;
}