Some checks are pending
Build AeThex Engine / build-windows (push) Waiting to run
Build AeThex Engine / build-linux (push) Waiting to run
Build AeThex Engine / build-macos (push) Waiting to run
Build AeThex Engine / create-release (push) Blocked by required conditions
Deploy Docsify Documentation / build (push) Waiting to run
Deploy Docsify Documentation / deploy (push) Blocked by required conditions
15 lines
511 B
JavaScript
15 lines
511 B
JavaScript
'use strict';
|
|
|
|
var bind = require('function-bind');
|
|
var $TypeError = require('es-errors/type');
|
|
|
|
var $call = require('./functionCall');
|
|
var $actualApply = require('./actualApply');
|
|
|
|
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
|
|
module.exports = function callBindBasic(args) {
|
|
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
throw new $TypeError('a function is required');
|
|
}
|
|
return $actualApply(bind, $call, args);
|
|
};
|