From 227a60b57f67874f8f4779a0c11fede882e5fb2f Mon Sep 17 00:00:00 2001 From: rouzwelt Date: Thu, 9 Jan 2025 00:22:15 +0000 Subject: [PATCH] fix test --- crates/macro/ui-tests/illegal-char-fn-attrs.rs | 6 +++--- crates/macro/ui-tests/illegal-char-fn-attrs.stderr | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/crates/macro/ui-tests/illegal-char-fn-attrs.rs b/crates/macro/ui-tests/illegal-char-fn-attrs.rs index d14af1256de..d7213c56fa7 100644 --- a/crates/macro/ui-tests/illegal-char-fn-attrs.rs +++ b/crates/macro/ui-tests/illegal-char-fn-attrs.rs @@ -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() } @@ -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() } diff --git a/crates/macro/ui-tests/illegal-char-fn-attrs.stderr b/crates/macro/ui-tests/illegal-char-fn-attrs.stderr index 8d5109939fd..3d90faba3d8 100644 --- a/crates/macro/ui-tests/illegal-char-fn-attrs.stderr +++ b/crates/macro/ui-tests/illegal-char-fn-attrs.stderr @@ -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 @@ -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")] + | ^^^^^^^^^^^^^^^^