Lines Matching defs:function
16 // Function that returns a Thenable function,
17 // a function with `catch` and `then` methods attached,
20 function f() {}
42 // `assert.rejects` accepts a function or a promise
56 // use a function as `obj` and that have no `catch` handler.
75 message: 'The "validate" validation function is expected to ' +
108 'from the "promiseFn" function but got undefined.'
129 message: 'The "promiseFn" argument must be of type function or an ' +
160 // `assert.doesNotReject` accepts a function or a promise
166 'from the "promiseFn" function but got an instance of Map.',
174 // use a function as `obj` and that have no `catch` handler.
230 'function or an instance of Promise. Received type number (123)'