Skip to content

process.exit in compiler frontend API limits usage #2112

@jimpo

Description

@jimpo

The docs say that the compiler can be called programatically using the cli/asc.js API. But there are situations where it may crash and instead of throwing an Error which could be caught, this module calls process.exit. This limits the contexts that could embed directs calls to this API. I think either there should be an API option not to call exit on crash, or the docs should state that the API should only be called in a subprocess.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions