Migrate Function tests to wasm

This commit is contained in:
Alex Crichton
2018-07-20 12:43:07 -07:00
parent 347c1daad9
commit 75215134a5
6 changed files with 74 additions and 210 deletions

View File

@ -674,7 +674,7 @@ extern "C" {
///
/// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/apply
#[wasm_bindgen(method)]
pub fn apply(this: &Function, context: &JsValue, args: &Array) -> Function;
pub fn apply(this: &Function, context: &JsValue, args: &Array) -> 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.