Skip to content

Simplify close_lexical_var#726

Merged
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:simplify-close-lexical-var
Nov 25, 2024
Merged

Simplify close_lexical_var#726
bnoordhuis merged 1 commit intoquickjs-ng:masterfrom
bnoordhuis:simplify-close-lexical-var

Conversation

@bnoordhuis
Copy link
Copy Markdown
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
@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

2 participants