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

Function CollectValues

deps/v8/test/mjsunit/typedarray-resizablearraybuffer.js:6213–6225  ·  view source on GitHub ↗
(n, ix, ta)

Source from the content-addressed store, hash-verified

6211 let values;
6212 let rab;
6213 function CollectValues(n, ix, ta) {
6214 if (typeof n == 'bigint') {
6215 values.push(Number(n));
6216 } else {
6217 values.push(n);
6218 }
6219 // We still need to return a valid BigInt / non-BigInt, even if
6220 // n is `undefined`.
6221 if (IsBigIntTypedArray(ta)) {
6222 return 0n;
6223 }
6224 return 0;
6225 }
6226
6227 function Helper(array) {
6228 values = [];

Callers

nothing calls this directly

Calls 2

IsBigIntTypedArrayFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected