MCPcopy Index your code
hub / github.com/gpujs/gpu.js / alias

Function alias

src/alias.js:9–14  ·  view source on GitHub ↗

* * @param name * @param source * @returns {Function}

(name, source)

Source from the content-addressed store, hash-verified

7 * @returns {Function}
8 */
9function alias(name, source) {
10 const fnString = source.toString();
11 return new Function(`return function ${ name } (${ utils.getArgumentNamesFromString(fnString).join(', ') }) {
12 ${ utils.getFunctionBodyFromString(fnString) }
13}`)();
14}
15
16module.exports = {
17 alias

Callers 1

createPropertyKernelsFunction · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…