mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-13 04:51:23 +00:00
Fix logic for is_enabled
in the threads transform (#1791)
The threads transform is implicitly enabled nowadays when the memory looks like it's shared, so ensure that's taken into account in the `is_enabled` check.
This commit is contained in:
@ -283,7 +283,7 @@ impl Bindgen {
|
||||
// pointer, so temporarily export it so that our many GC's don't remove
|
||||
// it before the xform runs.
|
||||
let mut exported_shadow_stack_pointer = false;
|
||||
if self.multi_value || self.threads.is_enabled() {
|
||||
if self.multi_value || self.threads.is_enabled(&module) {
|
||||
wasm_conventions::export_shadow_stack_pointer(&mut module)?;
|
||||
exported_shadow_stack_pointer = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user