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

Value capture results in invalid codegen #44

Closed
xTrayambak opened this issue Nov 26, 2024 · 0 comments
Closed

Value capture results in invalid codegen #44

xTrayambak opened this issue Nov 26, 2024 · 0 comments
Assignees
Labels
codegen bug A bug in the IR emitter

Comments

@xTrayambak
Copy link
Collaborator

Sample Code

let x = [3, 4, 5, 6]

function main() {
	console.log("X is", x);
}

main()

Expected Output

Log: X is [3, 4, 5, 6]

Current Output

The Mirage interpreter crashes

@xTrayambak xTrayambak added the codegen bug A bug in the IR emitter label Nov 26, 2024
@xTrayambak xTrayambak self-assigned this Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codegen bug A bug in the IR emitter
Projects
None yet
Development

No branches or pull requests

1 participant