Add bindings for String.from_char_code
@@ -2940,6 +2940,34 @@ extern "C" {
#[wasm_bindgen(method, js_class = "String", js_name = endsWith)]
pub fn ends_with(this: &JsString, search_string: &str, length: i32) -> bool;
+ /// The static String.fromCharCode() method returns a string created from
+ /// the specified sequence of UTF-16 code units.
+ ///
+ /// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode
+ ///
+ /// # Notes
+ ///
+ /// There are a few bindings to `from_char_code` in `js-sys`: `from_char_code1`, `from_char_code2`, etc...
+ /// with different arities.
+ #[wasm_bindgen(static_method_of = JsString, js_class = "String", js_name = fromCharCode)]
+ pub fn from_char_code1(a: f64) -> JsString;
+
+ /// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode
+ #[wasm_bindgen(static_method_of = JsString, js_class = "String", js_name = fromCharCode)]
+ pub fn from_char_code2(a: f64, b: f64) -> JsString;
+
+ /// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode
+ #[wasm_bindgen(static_method_of = JsString, js_class = "String", js_name = fromCharCode)]
+ pub fn from_char_code3(a: f64, b: f64, c: f64) -> JsString;
+
+ /// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode
+ #[wasm_bindgen(static_method_of = JsString, js_class = "String", js_name = fromCharCode)]
+ pub fn from_char_code4(a: f64, b: f64, c: f64, d: f64) -> JsString;
+
+ /// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/fromCharCode
+ #[wasm_bindgen(static_method_of = JsString, js_class = "String", js_name = fromCharCode)]
+ pub fn from_char_code5(a: f64, b: f64, c: f64, d: f64, e: f64) -> JsString;
+
/// The `includes()` method determines whether one string may be found
/// within another string, returning true or false as appropriate.
///
