(bindingFunction)
| 35 | |
| 36 | function test (binding) { |
| 37 | async function check (bindingFunction) { |
| 38 | const calls = []; |
| 39 | const result = await bindingFunction(THREAD_COUNT, Array.prototype.push.bind(calls)); |
| 40 | assert.ok(result); |
| 41 | assert.equal(sum(calls), EXPECTED_SUM); |
| 42 | } |
| 43 | |
| 44 | async function checkAcquire () { |
| 45 | const calls = []; |