blob: f4d6ab71382053b8d958fddbd9d35e2271f7084d (
plain)
1
2
3
4
5
6
7
|
// Used for `Array.rs` tests
exports.populate_array = function(arr, start, len) {
var isBigInt = typeof(arr[0]) === "bigint";
for (i = 0; i < len; i++) {
arr[i] = isBigInt ? BigInt(start + i) : start + i;
}
};
|