Skip to content

Commit 540876d

Browse files
fix: improve comment explaining stubbing
Co-authored-by: Till Schneidereit <till@tillschneidereit.net>
1 parent b314f06 commit 540876d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/spidermonkey-embedding-splicer/src/stub_wasi.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ pub fn stub_wasi(
148148
stub_http_types(&mut module)?;
149149
stub_http_outgoing(&mut module)?;
150150
}
151-
// If HTTP is disabled but fetch-event is enabled we want to stub only the wasi:http/outgoing-handler
152-
// import, and leave wasi:http/types will should be used by the fetch-event export.
151+
// If HTTP is disabled but fetch-event is enabled we want to stub only the `wasi:http/outgoing-handler`
152+
// and leave the rest of `wasi:http/types` in place for StarlingMonkey's implementation of `FetchEvent` to use.
153153
//
154154
// Note that we cannot *know* that the user will make use of fetch-event, but we must be prepared
155155
// for it, as the feature is enabled.

0 commit comments

Comments
 (0)