Skip to content

Is there a way to stop a running script? #1356

@ipapp

Description

@ipapp

In our embedded home automation product we use a Lua based application framework. Now we are considering using JavaScript instead. We did some tests with Duktape, which is architecturally quite similar to Lua.
As the apps running on our platform may come from 3rd parties, we need to make sure that the scripts will no go wild and consume 100% of CPU, forever.
We solved that by making the apps callback based, i.e. the surrounding framework is calling Lua callbacks as a reaction to events. If the callback execution takes longer than allowed, the framework will force stop the script execution.
Is there a similar feature in JerryScript?
Thanks,
Istvan.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions