Skip to content

Commit b76dbd4

Browse files
authored
fix(android): Updating to latest QuickJS library release (#129)
* Updating to 2025-04-26 version of quickjs libs * Adding changeset
1 parent 2eda1d1 commit b76dbd4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+13089
-12575
lines changed

.changeset/chilled-ducks-draw.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@capacitor/background-runner": minor
3+
---
4+
5+
(Android): Updating QuickJS to latest (2025-04-26)

README.md

Lines changed: 81 additions & 30 deletions
Large diffs are not rendered by default.

packages/android-js-engine/AndroidJSEngine/src/main/cpp/js-engine/src/quickjs/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ project(quickjs)
44

55
# Define the target
66
add_library(quickjs STATIC
7+
dtoa.c
78
cutils.c
89
libbf.c
910
libregexp.c

packages/android-js-engine/AndroidJSEngine/src/main/cpp/js-engine/src/quickjs/Changelog

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
2025-04-26:
2+
3+
- removed the bignum extensions and qjscalc
4+
- new BigInt implementation optimized for small numbers
5+
- added WeakRef, FinalizationRegistry and symbols as weakrefs
6+
- added builtin float64 printing and parsing functions for more correctness
7+
- faster repeated string concatenation
8+
- qjs: promise unhandled rejections are fatal errors by default
9+
- added column number in debug information
10+
- removed the "use strip" extension
11+
- qjs: added -s and --strip-source options
12+
- qjsc: added -s and --keep-source options
13+
- added JS_GetAnyOpaque()
14+
- added more callbacks for exotic objects in JSClassExoticMethods
15+
- misc bug fixes
16+
117
2024-01-13:
218

319
- top-level-await support in modules
@@ -13,7 +29,7 @@ TypedArray.prototype.{with,toReversed,toSorted}
1329
- added RegExp 'd' flag
1430
- fixed RegExp zero length match logic
1531
- fixed RegExp case insensitive flag
16-
- added os.getpid() and os.now()
32+
- added os.sleepAsync(), os.getpid() and os.now()
1733
- added cosmopolitan build
1834
- misc bug fixes
1935

packages/android-js-engine/AndroidJSEngine/src/main/cpp/js-engine/src/quickjs/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
QuickJS Javascript Engine
2-
2+
33
Copyright (c) 2017-2021 Fabrice Bellard
44
Copyright (c) 2017-2021 Charlie Gordon
55

0 commit comments

Comments
 (0)