Skip to content

QuickJS: fix compilation and initialization - #1114

Closed
bnoordhuis wants to merge 2 commits into
nginx:masterfrom
bnoordhuis:fix1113
Closed

QuickJS: fix compilation and initialization#1114
bnoordhuis wants to merge 2 commits into
nginx:masterfrom
bnoordhuis:fix1113

Conversation

@bnoordhuis

Copy link
Copy Markdown

Fixes #113 and references quickjs-ng/quickjs#1668. Description in the commit logs. The QuickJS-NG build now compiles again and passes make test.

  • I have read the CONTRIBUTING document
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • If applicable, I have checked that any relevant tests pass after adding my changes

QuickJS 0.16.0 adds support for externally managed resizable
arraybuffers, with a concomitant change to the function prototype
of JS_NewArrayBuffer(). Add a configure check and use the new prototype
when available.

Fixes: nginx#1113
Refs: quickjs-ng/quickjs#1668
It causes JSContext initialization failures with QuickJS-NG 0.16.0 and
up.
@github-actions

Copy link
Copy Markdown

🎉 Thank you for your contribution! It appears you have not yet signed the F5 Contributor License Agreement (CLA), which is required for your changes to be incorporated into an F5 Open Source Software (OSS) project. Please kindly read the F5 CLA and reply on a new comment with the following text to agree:


I have hereby read the F5 CLA and agree to its terms


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@xeioex

xeioex commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

@bnoordhuis

Thank you,

I am working on it in #1115.

@bnoordhuis

Copy link
Copy Markdown
Author

I have hereby read the F5 CLA and agree to its terms

...silly though it is. Forgot to mention: njs uncovered a bug in quickjs-ng itself that quickjs-ng/quickjs#1670 fixes. In no-assert builds the bug turns into a minor memory leak.

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 this pull request may close these issues.

setImmediate() is broken inside module

2 participants