mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-14 05:21:24 +00:00
implements bindings for Object.is (#537)
* implements bindings for Object.is * adds counterpart test cases for non-equal values
This commit is contained in:
committed by
Alex Crichton
parent
82c2dfa7b2
commit
de0ba29abc
@ -1712,6 +1712,12 @@ extern "C" {
|
||||
#[wasm_bindgen(method, js_name = hasOwnProperty)]
|
||||
pub fn has_own_property(this: &Object, property: &JsValue) -> bool;
|
||||
|
||||
/// The Object.is() method determines whether two values are the same value.
|
||||
///
|
||||
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
||||
#[wasm_bindgen(static_method_of = Object)]
|
||||
pub fn is(value_1: &JsValue, value_2: &JsValue) -> bool;
|
||||
|
||||
/// The `Object.isExtensible()` method determines if an object is extensible
|
||||
/// (whether it can have new properties added to it).
|
||||
///
|
||||
|
Reference in New Issue
Block a user