MCPcopy Index your code
hub / github.com/nodejs/node / getNameAndLength

Function getNameAndLength

test/parallel/test-runner-mocking.js:752–757  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

750
751test('mocked functions match name and length', (t) => {
752 function getNameAndLength(fn) {
753 return {
754 name: Object.getOwnPropertyDescriptor(fn, 'name'),
755 length: Object.getOwnPropertyDescriptor(fn, 'length'),
756 };
757 }
758
759 function func1() {}
760 const func2 = function(a) {}; // eslint-disable-line func-style

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…