Skip to content

Commit 3dfbed3

Browse files
inline StreamWebModule::evaluate to prevent LTO dead-code elimination
1 parent da8e1ac commit 3dfbed3

File tree

1 file changed

+1
-0
lines changed
  • modules/llrt_stream_web/src

1 file changed

+1
-0
lines changed

modules/llrt_stream_web/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ impl ModuleDef for StreamWebModule {
7474
Ok(())
7575
}
7676

77+
#[inline]
7778
fn evaluate<'js>(ctx: &Ctx<'js>, exports: &Exports<'js>) -> Result<()> {
7879
export_default(ctx, exports, |default| {
7980
Class::<ReadableStream>::define(default)?;

0 commit comments

Comments
 (0)