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

Function CollectValues

deps/v8/test/mjsunit/typedarray-growablesharedarraybuffer.js:2960–2972  ·  view source on GitHub ↗
(n, ix, ta)

Source from the content-addressed store, hash-verified

2958 let values;
2959 let gsab;
2960 function CollectValues(n, ix, ta) {
2961 if (typeof n == 'bigint') {
2962 values.push(Number(n));
2963 } else {
2964 values.push(n);
2965 }
2966 // We still need to return a valid BigInt / non-BigInt, even if
2967 // n is `undefined`.
2968 if (IsBigIntTypedArray(ta)) {
2969 return 0n;
2970 }
2971 return 0;
2972 }
2973
2974 function Helper(array) {
2975 values = [];

Callers

nothing calls this directly

Calls 2

IsBigIntTypedArrayFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected