diff --git a/crates/js-sys/src/lib.rs b/crates/js-sys/src/lib.rs index abad770a..7c5f46f1 100644 --- a/crates/js-sys/src/lib.rs +++ b/crates/js-sys/src/lib.rs @@ -624,18 +624,18 @@ pub mod Atomics { /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/wait) #[wasm_bindgen(static_method_of = Atomics, catch)] - pub fn wait(typed_array: &JsValue, index: u32, value: i32) -> Result; + pub fn wait(typed_array: &JsValue, index: u32, value: i32) -> Result; /// Like `wait()`, but with timeout /// /// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Atomics/wait) - #[wasm_bindgen(static_method_of = Atomics, catch)] + #[wasm_bindgen(static_method_of = Atomics, catch, js_name = wait)] pub fn wait_with_timeout( typed_array: &JsValue, index: u32, value: i32, timeout: f64, - ) -> Result; + ) -> Result; /// The static `Atomics.xor()` method computes a bitwise XOR /// with a given value at a given position in the array,