Skip to content

Incompatibility with purs bundle #145

@maximedenes

Description

@maximedenes

The following line:

exports.replicate = typeof Array.prototype.fill === "function" ? replicate : replicatePolyfill;

causes runtime errors when compiled with purs bundle, because replicatePolyfill gets eliminated as dead code.

I'm not sure if it is a purs bundle bug, since I don't understand exactly the spec of the code elimination it performs (in particular, what shapes of exports it supports).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions