X Tutup
Skip to content

LuaSet spread iterable operation leads to runtime error #1384

@Perryvw

Description

@Perryvw

This probably also applies to LuaMap:

const a: LuaSet<number> = new LuaSet();

a.add(10);
a.add(20);

[...a].map(a => 10);

https://typescripttolua.github.io/play/#code/MYewdgzgLgBAhgLhgGQK5wMoFMoB4yoC2ARlgE4B8MAvDGFgO4rrZQAUAlANwBQPcAOjgATYWwCMABm78hotgCZpvHgG0BGuAF0BhOAAc2cGlSncgA

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup