Member Junction
    Preparing search index...

    Result of code execution

    interface CodeExecutionResult {
        error?: string;
        errorType?:
            | "TIMEOUT"
            | "MEMORY_LIMIT"
            | "SYNTAX_ERROR"
            | "RUNTIME_ERROR"
            | "SECURITY_ERROR";
        executionTimeMs?: number;
        logs?: string[];
        output?: any;
        success: boolean;
    }
    Index

    Properties

    error?: string

    Error message if execution failed

    errorType?:
        | "TIMEOUT"
        | "MEMORY_LIMIT"
        | "SYNTAX_ERROR"
        | "RUNTIME_ERROR"
        | "SECURITY_ERROR"

    Type of error that occurred

    executionTimeMs?: number

    Execution time in milliseconds

    logs?: string[]

    Console logs captured during execution

    output?: any

    The output value set by the code (value of 'output' variable)

    success: boolean

    Whether execution was successful