mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-13 21:11:22 +00:00
Only emit static descriptors on wasm (#554)
This is a bit of a refinement of the solution from #548 to make sure that these statics are only present on the `wasm32-*` targets, as otherwise these descriptors are completely inert on other platforms!
This commit is contained in:
@ -287,7 +287,7 @@ fn extract_programs(module: &mut Module) -> Result<Vec<shared::Program>, Error>
|
||||
Section::Custom(ref s) => s,
|
||||
_ => continue,
|
||||
};
|
||||
if custom.name() != "__wasm_bindgen,unstable" {
|
||||
if custom.name() != "__wasm_bindgen_unstable" {
|
||||
continue;
|
||||
}
|
||||
to_remove.push(i);
|
||||
|
Reference in New Issue
Block a user