Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Jan 9, 2025
1 parent 2ea857e commit 227a60b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions crates/macro/ui-tests/illegal-char-fn-attrs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ use wasm_bindgen::prelude::*;

#[wasm_bindgen]
pub fn fn_with_illegal_char_attr1(
#[wasm_bindgen(js_name = "/*firstArg")] arg1: u32,
#[wasm_bindgen(js_name = "abcd */firstArg")] arg1: u32,
) -> JsValue {
arg1.into()
}

#[wasm_bindgen]
pub async fn fn_with_illegal_char_attr2(
#[wasm_bindgen(unchecked_param_type = "number*/")] arg1: u32,
#[wasm_bindgen(unchecked_param_type = "num*/ber")] arg1: u32,
) -> JsValue {
arg1.into()
}
Expand All @@ -26,7 +26,7 @@ pub async fn fn_with_illegal_char_attr4(arg1: u32) -> JsValue {
arg1.into()
}

#[wasm_bindgen(unchecked_return_type = "*/ number")]
#[wasm_bindgen(unchecked_return_type = "number */ abcd")]
pub async fn fn_with_illegal_char_attr5(arg1: u32) -> JsValue {
arg1.into()
}
Expand Down
10 changes: 5 additions & 5 deletions crates/macro/ui-tests/illegal-char-fn-attrs.stderr
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
error: contains illegal comment close syntax
--> ui-tests/illegal-char-fn-attrs.rs:5:30
|
5 | #[wasm_bindgen(js_name = "/*firstArg")] arg1: u32,
| ^^^^^^^^^^^^
5 | #[wasm_bindgen(js_name = "abcd */firstArg")] arg1: u32,
| ^^^^^^^^^^^^^^^^^

error: contains illegal comment close syntax
--> ui-tests/illegal-char-fn-attrs.rs:12:43
|
12 | #[wasm_bindgen(unchecked_param_type = "number*/")] arg1: u32,
12 | #[wasm_bindgen(unchecked_param_type = "num*/ber")] arg1: u32,
| ^^^^^^^^^^

error: contains illegal comment close syntax
Expand All @@ -25,5 +25,5 @@ error: contains illegal comment close syntax
error: contains illegal comment close syntax
--> ui-tests/illegal-char-fn-attrs.rs:29:40
|
29 | #[wasm_bindgen(unchecked_return_type = "*/ number")]
| ^^^^^^^^^^^
29 | #[wasm_bindgen(unchecked_return_type = "number */ abcd")]
| ^^^^^^^^^^^^^^^^

0 comments on commit 227a60b

Please sign in to comment.