Skip to content

Commit b709a3c

Browse files
authored
Merge pull request #146 from maximedenes/fix-bundle
Fix #145: Incompatibility with `purs bundle`
2 parents a4635c8 + 5b0d974 commit b709a3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Data/Array.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ exports.range = function (start) {
1818
};
1919
};
2020

21-
var replicate = function (count) {
21+
var replicateFill = function (count) {
2222
return function (value) {
2323
if (count < 1) {
2424
return [];
@@ -40,7 +40,7 @@ var replicatePolyfill = function (count) {
4040
};
4141

4242
// In browsers that have Array.prototype.fill we use it, as it's faster.
43-
exports.replicate = typeof Array.prototype.fill === "function" ? replicate : replicatePolyfill;
43+
exports.replicate = typeof Array.prototype.fill === "function" ? replicateFill : replicatePolyfill;
4444

4545
exports.fromFoldableImpl = (function () {
4646
function Cons(head, tail) {

0 commit comments

Comments
 (0)