fwd/vendor/js-sys/tests/wasm/Array.js
John Doty 9c435dc440 Vendor dependencies
Let's see how I like this workflow.
2022-12-19 08:38:22 -08:00

7 lines
220 B
JavaScript

// 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;
}
};