mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-13 21:11:22 +00:00
Support #[wasm_bindgen(setter, js_name = ...)]
Previously we'd require the explicit `js_name` to *also* start with `set_`, but when explicitly specified it shouldn't be mangled at all! Closes #584
This commit is contained in:
@ -4,11 +4,5 @@ error: setters must start with `set_`, found: a
|
||||
10 | fn a(this: &A, b: i32);
|
||||
| ^
|
||||
|
||||
error: setters must start with `set_`, found: x
|
||||
--> $DIR/invalid-setter.rs:15:46
|
||||
|
|
||||
15 | #[wasm_bindgen(setter, method, js_name = x)]
|
||||
| ^
|
||||
|
||||
error: aborting due to 2 previous errors
|
||||
error: aborting due to previous error
|
||||
|
||||
|
Reference in New Issue
Block a user