mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-22 17:21:35 +00:00
feat: add Reflect.has
This commit is contained in:
@ -1036,6 +1036,12 @@ extern "C" {
|
||||
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/getPrototypeOf
|
||||
#[wasm_bindgen(static_method_of = Reflect, js_name = getPrototypeOf, catch)]
|
||||
pub fn get_prototype_of(target: &JsValue) -> Result<JsValue, JsValue>;
|
||||
|
||||
/// The static Reflect.has() method works like the in operator as a function.
|
||||
///
|
||||
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/has
|
||||
#[wasm_bindgen(static_method_of = Reflect, catch)]
|
||||
pub fn has(target: &JsValue, property_key: &JsValue) -> Result<JsValue, JsValue>;
|
||||
}
|
||||
|
||||
// Set
|
||||
|
Reference in New Issue
Block a user