Skip to content

Conversation

@littledivy
Copy link
Member

@littledivy littledivy commented Nov 24, 2023

}

/* XXX: crashes here if module compilation fails */
wasm_streaming.finish();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressing this in WIP feature:

denoland/deno_core#350

value: v8::Local<v8::Value>,
mut wasm_streaming: v8::WasmStreaming,
) {
let (url, rid) = match compile_response(scope, value) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should make a call into JS here to do a branding check and extract the stream RID, as this could in theory be created w/a Response that is not sourced from fetch.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be mean having two wasm streaming callbacks. One in JS doing the brand check and one for streaming in Rust. I don't think the brand check is actually enforced by wpt.

@mmastrac
Copy link
Contributor

I like this approach, well done. Let me try to get the task spawner experiment working and we can see how they work together.

@bartlomieju
Copy link
Member

Closing because it's stale and we're tackling WASM imports. Feel free to reopen if you want to rebase and try to land it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants