mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-21 08:41:35 +00:00
fix: Reflect.has target should be &Object
This commit is contained in:
@ -1040,8 +1040,8 @@ extern "C" {
|
||||
/// 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>;
|
||||
#[wasm_bindgen(static_method_of = Reflect)]
|
||||
pub fn has(target: &Object, property_key: &JsValue) -> bool;
|
||||
|
||||
/// The static Reflect.isExtensible() method determines if an object is extensible
|
||||
/// (whether it can have new properties added to it). It is similar to
|
||||
|
Reference in New Issue
Block a user