ts2c icon indicating copy to clipboard operation
ts2c copied to clipboard

Ain't work

Open Atybot opened this issue 1 year ago • 1 comments

`var indices = [1, 2, 3]; var values = ["1", "2", "3"]; var obj = { }; for(var x = 0; x < indices.length; x++) { obj[indices[x]] = values[x]; }

for(var y = 0; y < indices.length; y++) { console.log(obj[indices[y]]); }`

Atybot avatar Mar 04 '23 19:03 Atybot

aha, I see, you are trying to use an empty object ({}) but this doesn't support those currently as it says Unsupported use of object literal expression as a comment in the generated C source code.

andriemc avatar Mar 10 '24 13:03 andriemc