MCPcopy Create free account
hub / github.com/nodejs/node / MaybeIntToBigInt

Function MaybeIntToBigInt

deps/v8/test/mjsunit/harmony/atomics.js:33–39  ·  view source on GitHub ↗
(arr, i)

Source from the content-addressed store, hash-verified

31}
32
33function MaybeIntToBigInt(arr, i) {
34 if (IsBig(arr)) {
35 return BigInt(i);
36 } else {
37 return i;
38 }
39}
40
41var IntegerTypedArrayConstructors = [
42 makeConstructorObject(Int8Array, -128, 127),

Callers 2

_iFunction · 0.85
testOpFunction · 0.85

Calls 1

IsBigFunction · 0.85

Tested by

no test coverage detected