Skip to content

using __TS_ArrayConcat for spreads breaks when nil values are present #1142

@tomblind

Description

@tomblind
const a = ["a"];
let b: unknown = null;
const result = [...a, b, "c"];
print(result[0], result[1], result[2]); // Should be "a", nil, "c"

Playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions