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

Function AllBigIntMatchedCtorCombinations

deps/v8/test/mjsunit/typedarray-helpers.js:95–106  ·  view source on GitHub ↗
(test)

Source from the content-addressed store, hash-verified

93}
94
95function AllBigIntMatchedCtorCombinations(test) {
96 for (let targetCtor of ctors) {
97 for (let sourceCtor of ctors) {
98 if (IsBigIntTypedArray(new targetCtor()) !=
99 IsBigIntTypedArray(new sourceCtor())) {
100 // Can't mix BigInt and non-BigInt types.
101 continue;
102 }
103 test(targetCtor, sourceCtor);
104 }
105 }
106}
107
108function AllBigIntUnmatchedCtorCombinations(test) {
109 for (let targetCtor of ctors) {

Calls 2

IsBigIntTypedArrayFunction · 0.85
testFunction · 0.70

Tested by

no test coverage detected