Closed rebolyte closed 2 months ago
Yes, this is a duplicate of https://github.com/bytecodealliance/ComponentizeJS/issues/96, which has root cause https://github.com/bytecodealliance/StarlingMonkey/issues/19.
It's not being actively worked on because the StarlingMonkey consumers all have a custom implementation, which is very unfortunate for adoption I know!
I am, slowly, working on the upstream bug, fwiw. It's a surprisingly big change to make fetch work properly, but it is coming ☺️
I see in the tests that the global
Request
/Response
/Headers
objects are available, and I can createHeaders
successfully. But if I try to createRequest
orResponse
using the example, the module errors out withwasm 'unreachable' instruction executed
:If I return
Reflect.ownKeys(globalThis).join(',')
from the function, I can see also see they're on the object. My end goal is to be able to run Hono inside the module, and it uses the native req/res objects. What am I missing?