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

Function fn

lib/stream.js:68–73  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

66 const key = streamKeys[i];
67 const op = streamReturningOperators[key];
68 function fn(...args) {
69 if (new.target) {
70 throw new ERR_ILLEGAL_CONSTRUCTOR();
71 }
72 return Stream.Readable.from(ReflectApply(op, this, args));
73 }
74 ObjectDefineProperty(fn, 'name', { __proto__: null, value: op.name });
75 ObjectDefineProperty(fn, 'length', { __proto__: null, value: op.length });
76 ObjectDefineProperty(Stream.Readable.prototype, key, {

Callers 2

getCheckedFunctionFunction · 0.70
getActualFunction · 0.70

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected