Skip to content

P3 async wast test failures #11582

@lukewagner

Description

@lukewagner

The following two component-model async tests fail on the current (Sept 28) dev release:

  1. tests/async/cancel-subtask.wast

The problem seems to be that the call to waitable-set.wait on line 51 which is defined without cancellable set (on line 64) returns the TASK_CANCELLED code (= 6) when subtask.cancel is called on line 144. Instead, I believe that, since the subtask isn't cancellable, subtask.cancel should immediately return the BLOCKED code (= -1).

  1. tests/async/zero-length.wast

The problem seems to be that $consume_cb (defined on line 147) is called with $event_code = STREAM_WRITE (= 3) instead of the expected STREAM_READ (= 2) for the stream.read issued on line 139. Additionally, the $index isn't $insr (= 2), which was passed to stream.read; it's 3. Maybe there's a mixup between the readable and writable ends here?

Metadata

Metadata

Assignees

Labels

bugIncorrect behavior in the current implementation that needs fixingwasm-proposal:component-model-asyncIssues related to the WebAssembly Component Model async proposal

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions