Skip to content

Add trigger InterruptHandler support #387

@io-mars

Description

@io-mars

QuickJS is great! but it cannot set pause after JS_Call, maybe should export a new JS_TriggerInterruptHandler API , then the C program can trigger the JSContext running state through a special JSInterruptHandler, it's very useful when executing a large scripts.Would this be feasible?

void JS_TriggerInterruptHandler(JSContext *ctx)
{
   ctx->interrupt_counter = 0;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions