Skip to content

QuickJS breaks on OOM in a vm #30

@vicrazumov

Description

@vicrazumov

Hi @justjake

When a vm fails due to the "out of memory" issue, I cannot neither dispose it nor create a new one. It keeps failing with the RuntimeError: memory access out of bounds.

How to reproduce

  1. run vm.evalScript() with a code, big enough to violate the memory limit
  2. you will get the RuntimeError: memory access out of bounds error
  3. try calling vm.dispose() or quickJS.createVm() - you will be getting the same error

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