Skip to content

wasm: return object #3113

@Codelax

Description

@Codelax

Currently the wasm interface throw an Error containing stderr when exit code is 1. On success it returns stdout.

A custom object should be created containing the exitcode aswell as a buffer containing stdout and stderr. (Maybe export both as buffer too).

The new buffer returned would contain output lines in the order like it would show when using a terminal. One of the issues is that stdout and stderr are in seperate buffer. The output can be:

[stdout] line 1
[stdout] line 2
[stderr] line 1
[stdout] line 3

A throw should happen only on crash, this error format should be defined so the stacktrace can be used.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions