interface Thread {
    blockContainer: Blocks;
    blockGlowInFrame: null | string;
    generator: null | Generator;
    isCompiled: boolean;
    isKilled: boolean;
    justReported: unknown;
    requestScriptGlowInFrame: boolean;
    stack: string[];
    stackClick: boolean;
    stackFrames: StackFrame[];
    status: ThreadStatus;
    target: RenderedTarget;
    topBlock: string;
    triedToCompile: boolean;
    updateMonitor: boolean;
    warpTimer: null | Timer;
    atStackTop(): boolean;
    getId(): string;
    getParam(name: string): null | ScratchCompatibleValue;
    goToNextBlock(): void;
    initParams(): void;
    isRecursiveCall(procedureCode: string): boolean;
    peekParentStackFrame(): null | StackFrame;
    peekStack(): string;
    peekStackFrame(): null | StackFrame;
    popStack(): string;
    pushParam(name: string, value: ScratchCompatibleValue): void;
    pushReportedValue(value: ScratchCompatibleValue): void;
    pushStack(blockId: string): void;
    reuseStackForNextBlock(blockId: string): void;
    stopThisScript(): void;
    tryCompile(): void;
}

Properties

blockContainer: Blocks
blockGlowInFrame: null | string
generator: null | Generator
isCompiled: boolean
isKilled: boolean
justReported: unknown
requestScriptGlowInFrame: boolean
stack: string[]
stackClick: boolean
stackFrames: StackFrame[]
status: ThreadStatus
topBlock: string
triedToCompile: boolean
updateMonitor: boolean
warpTimer: null | Timer

Methods

  • Parameters

    • procedureCode: string

    Returns boolean