Add binding for Object.getOwnPropertySymbols()

This commit is contained in:
Michael Hoffmann
2018-09-19 20:58:46 +02:00
parent 4e18493fd7
commit 76969bd1e3
2 changed files with 13 additions and 0 deletions

View File

@ -2048,6 +2048,13 @@ extern "C" {
#[wasm_bindgen(static_method_of = Object, js_name = getOwnPropertyNames)]
pub fn get_own_property_names(obj: &Object) -> Array;
/// The Object.getOwnPropertySymbols() method returns an array of
/// all symbol properties found directly upon a given object.
///
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertySymbols)
#[wasm_bindgen(static_method_of = Object, js_name = getOwnPropertySymbols)]
pub fn get_own_property_symbols(obj: &Object) -> Array;
/// The `hasOwnProperty()` method returns a boolean indicating whether the
/// object has the specified property as its own property (as opposed to
/// inheriting it).