Added tests for bind1()

This commit is contained in:
Samuel Warfield
2019-06-28 12:03:45 -06:00
parent caa86a07a0
commit 06d0704cf8
3 changed files with 42 additions and 0 deletions

View File

@ -1072,6 +1072,14 @@ extern "C" {
arg3: &JsValue,
) -> Result<JsValue, JsValue>;
/// The bind() method creates a new function that, when called, has its this keyword set to the provided value,
/// with a given sequence of arguments preceding any provided when the new function is called.
///
/// [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/bind)
#[wasm_bindgen(method, js_name = bind)]
pub fn bind(this: &Function, context: &JsValue) -> Function;
/// The bind() method creates a new function that, when called, has its this keyword set to the provided value,
/// with a given sequence of arguments preceding any provided when the new function is called.
///