Lines Matching refs:func
19 var func = function (a, b) { function
23 t.equal(func.length, 2, 'original function length is 2');
24 t.deepEqual(func(), [undefined, undefined, undefined], 'unbound func with too few args');
25 t.deepEqual(func(1, 2), [undefined, 1, 2], 'unbound func with right args');
26 t.deepEqual(func(1, 2, 3), [undefined, 1, 2], 'unbound func with too many args');
28 var bound = callBind(func);
29 …t.equal(bound.length, func.length + 1, 'function length is preserved', { skip: !functionsHaveConfi…
34 var boundR = callBind(func, sentinel);
35 …t.equal(boundR.length, func.length, 'function length is preserved', { skip: !functionsHaveConfigur…
40 var boundArg = callBind(func, sentinel, 1);
41 …t.equal(boundArg.length, func.length - 1, 'function length is preserved', { skip: !functionsHaveCo…
47 var aBound = callBind.apply(func);
52 var aBoundArg = callBind.apply(func);
57 var aBoundR = callBind.apply(func, sentinel);