Skip to content

feat(jsruntime): closures #195

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

Closed
masnagam opened this issue Jun 11, 2024 · 2 comments · Fixed by #236
Closed

feat(jsruntime): closures #195

masnagam opened this issue Jun 11, 2024 · 2 comments · Fixed by #236
Assignees

Comments

@masnagam
Copy link
Member

No description provided.

@masnagam masnagam moved this to Todo in javascript-engine Jun 11, 2024
@masnagam masnagam moved this from Todo to In Progress in javascript-engine Jun 29, 2024
@masnagam masnagam self-assigned this Jun 30, 2024
@masnagam
Copy link
Member Author

masnagam commented Jun 30, 2024

@masnagam
Copy link
Member Author

masnagam commented Jul 7, 2024

we have to consider about the following example:

<script>
  let b = () => console.log(a);
</script>
<script>
  let a = 1;
  b();
</script>

this example should work. that is, the global environment record should be shared with scripts. it should be allocated on the heap.

in this ticket, we won't implement the global environment record. #221 was added for that.

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

Successfully merging a pull request may close this issue.

1 participant