Skip to content

Http effect: browser runtime uses deprecated synchronous XMLHttpRequest #355

@aallan

Description

@aallan

The browser runtime implementation of Http.get and Http.post (#57) uses synchronous XMLHttpRequest, which is deprecated and:

  • Blocks the main thread
  • Is unavailable in service workers and shared workers
  • May be removed from browsers in the future
  • Triggers deprecation warnings in browser consoles

Impact

HTTP requests work on the main browser thread but not in worker contexts. The browser console shows deprecation warnings.

Possible fix

Options:

  1. Use Atomics.wait + SharedArrayBuffer with a worker to bridge async fetch to synchronous WASM (complex)
  2. Wait for WASI 0.2/0.3 (WASI 0.2 compliance #237) which provides native async I/O
  3. Accept the limitation until Vera supports async WASM execution

Related: #57 (Http effect), #237 (WASI)

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedCannot be addressed until a dependency lands; see Relationships panelciCI/CD and GitHub ActionslimitationKnown compilation limitation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions