Skip to content

Conversation

@2bam
Copy link
Contributor

@2bam 2bam commented Jul 4, 2025

Kept the changes as lean as possible.
All ctest tests pass, but had to update a couple of things.

Update QuickJS dependency to version 2025-04-26.

Fix module loading to keep old API semantics.

  • In quickjs, now modules that fail to load do not return a JS_EXCEPTION but a
    rejected promise. Added handling in quickjspp in order to maintain the
    previous expected API which throws a qjs::exception on eval failure
    (exception.cpp test)

Fix null context access.

  • Added a JS_RunGC at the qjs::Context dtor, otherwise the unhandled rejections
    called upon finalization tried to access the opaque value of an already freed
    JSContext.

Fix quickjspp code and cmake issues.
Update git patches to match new version of quicks.
Remove bignum support (removed from QuickJS).
Add QuickJS LICENSE file.

Update QuickJS to match https://github.com/bellard/quickjs/ master.
Commit date Sat Jun 28 17:41:58 2025 +0200
Commit hash 458c34d29d0d262f824ea1c0e01aa0e3790669da

Fix quickjspp code and cmake issues.
Update git patches to match new version of quicks.
Remove bignum support (removed from QuickJS).
Fix module loading to keep old API semantics.
- In new QuickJS module load fails with a rejected promise
- Make failure in a module load always throws an qjs::exception.
- This is needed to pass the "exception" unit test.
Add QuickJS LICENCE file.

Update QuickJS to match https://github.com/bellard/quickjs/ master.
Commit date Sat Jun 28 17:41:58 2025 +0200
Commit hash 458c34d29d0d262f824ea1c0e01aa0e3790669da
@ftk
Copy link
Owner

ftk commented Jul 4, 2025

Thank you!

@ftk ftk merged commit 01cdd30 into ftk:master Jul 4, 2025
6 of 12 checks passed
@2bam
Copy link
Contributor Author

2bam commented Jul 4, 2025

And thank you! For writing great software that allowed me to embed JS in minutes with no boilerplate.
Glad I could help :)

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