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

@ -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);
};