Add Array.prototype.values binding (#395)

This commit is contained in:
Michael Hoffmann
2018-07-09 19:42:30 +02:00
committed by Alex Crichton
parent 21cb50ef05
commit bae324c951
2 changed files with 52 additions and 6 deletions

View File

@ -339,6 +339,13 @@ extern "C" {
/// http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/entries
#[wasm_bindgen(method)]
pub fn entries(this: &Array) -> ArrayIterator;
/// The values() method returns a new Array Iterator object that
/// contains the values for each index in the array.
///
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/values
#[wasm_bindgen(method)]
pub fn values(this: &Array) -> ArrayIterator;
}
// Boolean