mirror of
https://github.com/denoland/deno.git
synced 2024-12-28 01:59:06 -05:00
5edd277161
WebAssembly modules compiled through `WebAssembly.compile()` and similar non-streaming APIs don't have a URL associated to them, because they have been compiled from a buffer source. In stack traces, V8 will use a URL such as `wasm://wasm/d1c677ea`, with a hash of the module. However, wasm modules compiled through streaming APIs, like `WebAssembly.compileStreaming()`, do have a known URL, which can be obtained from the `Response` object passed into the streaming APIs. And as per the developer-facing display conventions in the WebAssembly Web API spec, this URL should be used in stack traces. This change implements that.
3 lines
161 B
Text
3 lines
161 B
Text
error: Uncaught (in promise) RuntimeError: unreachable
|
|
at <anonymous> (http://localhost:4545/unreachable.wasm:1:41)
|
|
at [WILDCARD]/wasm_url.js:[WILDCARD]
|