Logo
Explore Help
Sign In
fluencelabs/wasm-bindgen
1
0
Fork 0
You've already forked wasm-bindgen
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-05-08 12:02:17 +00:00
Code Issues Projects Releases Wiki Activity
wasm-bindgen/crates/macro/ui-tests/invalid-setter.stderr

9 lines
174 B
Plaintext
Raw Normal View History

Improve error message for `infer_setter_property` If the setter doesn't start with `set_*` then we currently panic, but panicking is bad! Instead let's thread through structured errors to make sure they make their way to the top
2018-09-21 17:29:50 -07:00
error: setters must start with `set_`, found: a
--> $DIR/invalid-setter.rs:10:8
|
10 | fn a(this: &A, b: i32);
| ^
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
2018-09-21 17:34:41 -07:00
error: aborting due to previous error
Improve error message for `infer_setter_property` If the setter doesn't start with `set_*` then we currently panic, but panicking is bad! Instead let's thread through structured errors to make sure they make their way to the top
2018-09-21 17:29:50 -07:00
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 70ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API