Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
19
third-party/vendor/js-sys/tests/wasm/Function.js
vendored
Normal file
19
third-party/vendor/js-sys/tests/wasm/Function.js
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
// Used for `Function.rs` tests
|
||||
exports.get_function_to_bind = function() {
|
||||
return function() { return this.x || 1; }
|
||||
};
|
||||
exports.get_value_to_bind_to = function() {
|
||||
return { x: 2 };
|
||||
};
|
||||
exports.list = function() {
|
||||
return 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);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue