Skip to content

MaxExecutionTime ignored #27

@gwillem

Description

@gwillem

The following runs indefinitely:

rt, _ := qjs.New(qjs.Option{MaxExecutionTime: 5000})
result, err := rt.Eval("test.js", qjs.Code(`while (true) {}`))

Probably related to https://github.com/fastschema/qjs/blob/master/qjswasm/helpers.c#L62
Why was that commented out?

Thanks for making QJS!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions