Skip to content

Array append broken #159

@youtux

Description

@youtux

The following Python code

a = ["hello"]
a += ["world"]
print(a) # ['hello', 'world']

gets compiled into:

a = ["hello"];
// ...
a += ["world"];
console.log(a); // "helloworld"

which is wrong, since a now is the helloworld string, while it should be the ['hello', 'world'] array.

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