Skip to content

Improve WASM layer error handling #149

@swernli

Description

@swernli

The qsc_wasm layer does not fully handle the errors reported by check_internal, as some information gets lost in translation (secondary labels, help text, etc). In addition, run_internal API currently only supports returning a single error rather than a list, which might not work for errors from passes like extracting entry point. We need to update the error handling to support multiple, detailed errors, and work on the compilation/execution context caching semantics to better provide actionable errors to the user via WASM.

Tasks

    • Cleanup object vs json diagnostic return, with consistent control character escaping

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions