Transcrypt icon indicating copy to clipboard operation
Transcrypt copied to clipboard

Fix indexing into objects with non-slice things

Open daboross opened this issue 4 years ago • 0 comments

This allows the following Python code to compile and work:

obj = {"a": "hello"}
print(obj["a"])

This was previously compiled to:

export var obj=dict([["a","hello"]]);
print();

With this PR, it will now be compiled to:

export var obj=dict([["a","hello"]]);
print(obj["a"]);

daboross avatar Dec 27 '20 12:12 daboross