Skip to content

Simplify close_lexical_var #726

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

Merged
merged 1 commit into from
Nov 25, 2024

Conversation

bnoordhuis
Copy link
Contributor

Its implementation was borderline wrong: calling it with is_arg=TRUE segfaults because it looks up the var ref index in the wrong array.

Fortunately, there is only one caller and it only passes FALSE.

Its implementation was borderline wrong: calling it with is_arg=TRUE
segfaults because it looks up the var ref index in the wrong array.

Fortunately, there is only one caller and it only passes FALSE.
@bnoordhuis bnoordhuis merged commit 0b0b794 into quickjs-ng:master Nov 25, 2024
58 of 59 checks passed
@bnoordhuis bnoordhuis deleted the simplify-close-lexical-var branch November 25, 2024 23:34
saghul added a commit that referenced this pull request Mar 21, 2025
saghul added a commit that referenced this pull request Mar 23, 2025
This reverts commit 0b0b794.

This makes our code closer to bellard/quickjs, which makes applying the
commit right after this one simpler.
saghul added a commit that referenced this pull request Mar 23, 2025
This reverts commit 0b0b794.

This makes our code closer to bellard/quickjs, which makes applying the
commit right after this one simpler.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants