mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-25 02:31:35 +00:00
Added tests for bind1()
This commit is contained in:
@ -5,6 +5,15 @@ exports.get_function_to_bind = function() {
|
||||
exports.get_value_to_bind_to = function() {
|
||||
return { x: 2 };
|
||||
};
|
||||
exports.list = function() {
|
||||
return Array.prototype.slice.call(arguments);
|
||||
};
|
||||
exports.add_arguments = function() {
|
||||
return function(arg1, arg2) {return arg1 + arg2}
|
||||
};
|
||||
exports.call_function = function(f) {
|
||||
return f();
|
||||
};
|
||||
exports.call_function_arg = function(f, arg1) {
|
||||
return f(arg1);
|
||||
};
|
||||
|
Reference in New Issue
Block a user