mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-22 09:11:35 +00:00
Fix name collisions with test functions and intrinsics (#2123)
There was an unfortunate collision with how test symbols were named and the various bindings functions exported by wasm-bindgen. This commit fixes these issues by using a separate prefix for `#[wasm_bindgen_test]` than other `#[wasm_bindgen]` functions which should avoid the name clash. Closes #2121
This commit is contained in:
@ -63,7 +63,7 @@ fn main() -> anyhow::Result<()> {
|
||||
let mut tests = Vec::new();
|
||||
|
||||
for export in wasm.exports.iter() {
|
||||
if !export.name.starts_with("__wbg_test") {
|
||||
if !export.name.starts_with("__wbgt_") {
|
||||
continue;
|
||||
}
|
||||
tests.push(export.name.to_string());
|
||||
|
Reference in New Issue
Block a user