Lines Matching defs:function
29 // Do not require 'os' until needed so that test-os-checked-function can
66 function parseTestFlags(filename = process.argv[1]) {
166 async_wrap.queueDestroyAsyncId = function queueDestroyAsyncId(id) {
230 function childShouldThrowAndAbort() {
240 child.on('exit', function onExit(exitCode, signal) {
248 function createZeroFilledFile(filename) {
260 function platformTimeout(ms) {
356 function allowGlobals(...allowlist) {
366 function leakedGlobals() {
378 process.on('exit', function() {
388 function runCallChecks(exitCode) {
391 const failed = mustCallChecks.filter(function(context) {
400 failed.forEach(function(context) {
401 console.log('Mismatched %s function calls. Expected %s, actual %d.',
411 function mustCall(fn, exact) {
415 function mustSucceed(fn, exact) {
416 return mustCall(function(err, ...args) {
418 if (typeof fn === 'function')
423 function mustCallAtLeast(fn, minimum) {
427 function _mustCallInner(fn, criteria = 1, field) {
452 const _return = function() { // eslint-disable-line func-style
457 // Let's replicate those properties to the returned function.
458 // Refs: https://tc39.es/ecma262/#sec-function-instances
476 function hasMultiLocalhost() {
485 function skipIfEslintMissing() {
493 function canCreateSymLink() {
515 function getCallSite(top) {
527 function mustNotCall(msg) {
529 return function mustNotCall(...args) {
533 `${msg || 'function should not have been called'} at ${callSite}` +
540 function mustNotMutateObjectDeep(original) {
584 function printSkipMessage(msg) {
588 function skip(msg) {
596 function nodeProcessAborted(exitCode, signal) {
629 function isAlive(pid) {
638 function _expectWarning(name, expected, code) {
672 function expectWarning(nameOrMap, expected, code) {
695 function expectsError(validator, exact) {
712 function skipIfInspectorDisabled() {
718 function skipIf32Bits() {
724 function skipIfWorker() {
730 function getArrayBufferViews(buf) {
759 function getBufferSources(buf) {
763 function getTTYfd() {
780 function runWithInvalidFD(func) {
793 // A helper function to simplify checking for ERR_INVALID_ARG_TYPE output.
794 function invalidArgTypeHelper(input) {
798 if (typeof input === 'function' && input.name) {
799 return ` Received function ${input.name}`;
814 function skipIfDumbTerminal() {
820 function gcUntil(name, condition) {
821 if (typeof name === 'function') {
827 function gcAndCheck() {
844 function requireNoPackageJSONAbove(dir = __dirname) {
858 function spawnPromisified(...args) {