Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ain't work #96

Open
Atybot opened this issue Mar 4, 2023 · 1 comment
Open

Ain't work #96

Atybot opened this issue Mar 4, 2023 · 1 comment
Labels

Comments

@Atybot
Copy link
Contributor

Atybot commented Mar 4, 2023

`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]]);
}`

@andriemc
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants