Repository navigation
Releases
Releases · quickjs-ng/quickjs
v0.18.0
What's Changed
- Use built-in methods in bjson test by @bnoordhuis in #1749
- Fix String.prototype.repeat with a large count on an empty string by @ethanstoner in #1741
- Port bellard/quickjs@10c81b1 to fix GCC 14+ performance regression by @gengjiawen in #1744
- Fix precision loss in performance.now() and timeOrigin by @josefguenther in #1746
- Fix use-after-free when JS_NewContext runs out of memory by @IamYipi in #1781
- Fix os.poll dispatch when a later descriptor is ready by @gengjiawen in #1786
- Update MSVC version for ARM64 builds in CI by @saghul in #1785
- Ensure function prototype is propagated when bound by @sr5434 in #1733
- Use mi_usable_size for the mimalloc usable-size hook by @saghul in #1788
- Pass JSContext to JSInterruptHandler by @bnoordhuis in #1802
- Accept Unicode spaces in Date.parse by @goffrie in #1774
- Return false instead of error with undefined receiver in Reflect.set by @sr5434 in #1734
- Fix evaluation order of computed property assignment by @goffrie in #1780
- Record the source location of import() calls by @yspbwx2010 in #1755
- Fix leak in JSON.stringify when an array index can't be converted by @IamYipi in #1784
- Tweak GC-on-new-object heuristic by @bnoordhuis in #1806
- Make OOM exceptions uncatchable by JS code by @bnoordhuis in #1810
- docs: add DuckDB QuickJS extension to projects list by @rustyconover in #1812
- Make InternalErrors uncatchable by JS code by @bnoordhuis in #1814
- Template literals convert substitutions too late (and look up String.prototype.concat) by @Iann29 in #1811
- Explain new security policy in SECURITY.md by @bnoordhuis in #1818
- Upgrade macos-14 runners to macos-15 by @bnoordhuis in #1830
- Fix infinite loop on allocation failure in unicode_script() by @Kayyo321 in #1829
- Export all API symbols in the QJS_WASI_REACTOR build by @effulgentsia in #1804
- Export the indirect function table in the WASI reactor and make it growable by @effulgentsia in #1841
- Fix leak in JS_ReadBigInt on truncated input by @theaddonn in #1840
- Cosmopolitan libc build by @bnoordhuis in #1839
- Support asynchronous dynamic import() by @bnoordhuis in #1860
- Fix use-after-free when freeing a WeakMap with symbol values by @wleeaf in #1844
- Array.fromAsync: use internal call instead of .call lookup (#1795) by @Chieler in #1832
- Use $RUNNER_TEMP instead of /tmp in CI recipes by @bnoordhuis in #1861
New Contributors
- @ethanstoner made their first contribution in #1741
- @gengjiawen made their first contribution in #1744
- @IamYipi made their first contribution in #1781
- @yspbwx2010 made their first contribution in #1755
- @rustyconover made their first contribution in #1812
- @Iann29 made their first contribution in #1811
- @Kayyo321 made their first contribution in #1829
- @effulgentsia made their first contribution in #1804
- @theaddonn made their first contribution in #1840
- @wleeaf made their first contribution in #1844
- @Chieler made their first contribution in #1832
Full Changelog: v0.17.0...v0.18.0
v0.17.0
What's Changed
- update projects.md to include scriptc project reference (from the Ver… by @lukasMega in #1677
- Fixes segfault from #1661 by @sr5434 in #1675
- docs: add Qbs to projects by @ABBAPOH in #1685
- Add Big Endian architecture support instructions by @saghul in #1681
- Conditional BUILD_DIR by @kapouer in #1686
- Fix String.prototype.normalize() crash from #1683 by @sr5434 in #1688
- Fix reference count bug in Promise.withResolvers by @bnoordhuis in #1692
- Enable test262 host-gc-required feature by @bnoordhuis in #1696
- docs: add Vayu to projects by @athrvk in #1702
- Use mirror for Alpine GHA by @bnoordhuis in #1705
- Fix Iterator.from GetIteratorDirect handling by @jiang1997 in #1706
- Link against libm unconditionally on Unices by @bnoordhuis in #1699
- Fix out-of-bound read in JS_NewTypedArray by @bnoordhuis in #1704
- Preserve old interrupt handler in std.evalScript by @bnoordhuis in #1707
- fix: correct int/int32_t pointer mismatches for -Wincompatible-pointer-types by @SomSamantray in #1657
- Fix JS_FreeCStringUTF16 on slice strings by @bnoordhuis in #1709
- Add react-native-quickjs project to documentation by @saghul in #1710
- Move JSClass out of quickjs.h by @bnoordhuis in #1713
- Optimize JS_DeleteGlobalVar by @bnoordhuis in #1714
- Throw error when converting BigIntArray to Int8Array (#1690) by @sr5434 in #1694
- Fix power-of-two integer hash collisions by @bnoordhuis in #1720
- Store constant atoms more compactly in wire format by @bnoordhuis in #1719
- Prevent Object.preventExtensions when a TypedArray has a resizable ArrayBuffer by @sr5434 in #1695
- Make DOMException a bit more conformant by @goffrie in #1721
- Fix TypedArray.prototype.at() to handle resized ArrayBuffer correctly by @sr5434 in #1718
- Fix JS_SetMemoryLimit byte accounting on WASI by @josefguenther in #1711
- Fix(wasi): enable configurable stack overflow protection by @aayush-kapoor in #1700
- Use a bigger initial atom hash table by @bnoordhuis in #1723
- Add private symbols by @bnoordhuis in #1725
- Peephole-optimize negation + conditional jump by @bnoordhuis in #1726
- Check for property deletion when accessing in
withby @sr5434 in #1722
New Contributors
- @lukasMega made their first contribution in #1677
- @kapouer made their first contribution in #1686
- @athrvk made their first contribution in #1702
- @SomSamantray made their first contribution in #1657
- @goffrie made their first contribution in #1721
- @josefguenther made their first contribution in #1711
- @aayush-kapoor made their first contribution in #1700
Full Changelog: v0.16.2...v0.17.0
v0.16.2
What's Changed
- Fix JS_NewObjectFrom by @bnoordhuis in #1659
- Fix Proxy ownKeys trap accepting a primitive result by @saghul in #1637
- Fix arity of os.chdir and std.setenv by @bnoordhuis in #1662
- Fix object leak in JS_NewCConstructor by @bnoordhuis in #1670
- Fix SIGBUS on strict-alignment platforms: align cpool_offset to 8 bytes by @vom513 in #1666
- Fix TypedArray.prototype.with() value conversion order by @sr5434 in #1667
- Do not leak the old prototype in JS_AddIntrinsicDOMException() by @andreasrosdal in #1642
- Return the class name atom from JS_GetClassName() by @andreasrosdal in #1641
- Always call the sort comparator, even for identical values by @andreasrosdal in #1645
- Fix rejection of escaped reserved punctuators in v-flag \q by @sr5434 in #1671
- Add interrupt checks to Array prototype methods by @bnoordhuis in #1674
- Propagate exceptions from the get/set descriptor accessors by @saghul in #1638
- Check target extensibility via IsExtensible() in the proxy invariant checks by @saghul in #1636
New Contributors
Full Changelog: v0.16.1...v0.16.2
v0.16.1
What's Changed
- perf(parser): Avoid quadratic identifier column lookup by @bai in #1630
- Install manpages to the correct location by @BillyONeal in #1632
- Make libunicode-table.h reproducible from unicode_gen by @saghul in #1634
New Contributors
- @bai made their first contribution in #1630
- @BillyONeal made their first contribution in #1632
Full Changelog: v0.16.0...v0.16.1
v0.16.0
What's Changed
- Add new project by @qr243vbi in #1529
- Disable standalone executable support under WASM / Emscripten by @saghul in #1528
- Only export API symbols for shared builds by @dannote in #1525
- Update CI configuration to use Visual Studio 18 by @saghul in #1533
- Update test262 by @saghul in #1539
- Fix -Wmaybe-uninitialized warning in js_binary_logic_slow by @sdrsdr in #1530
- Implement Error.prototype.stack accessor proposal by @saghul in #1536
- Enforce immutability on TypedArray write paths by @saghul in #1537
- Fix ArrayBuffer immutable-method semantics by @saghul in #1538
- Implement nonextensible-applies-to-private proposal by @saghul in #1540
- Bump actions/checkout from 6 to 7 by @dependabot[bot] in #1542
- Default to release builds in Meson by @saghul in #1544
- JS_Free*: public vararg macros by @vitawrap in #1535
- Build release binaries with static mimalloc by @saghul in #1545
- Add Unicode license to libunicode-table.h by @bnoordhuis in #1547
- Port Bellard's register-based regexp engine by @saghul in #1548
- Fix build with strict C compilers on x86-32 by @trufae in #1550
- Inline mixed int/float arithmetic and fast-array reads in the interpreter by @saghul in #1549
- Add arena allocator by @saghul in #1551
- Fix
set Iterator.prototype.constructorfor non-object values by @saghul in #1553 - Fix reference leak in
Iterator.prototype.filterby @saghul in #1561 - Fix Iterator Helper close when the source iterator has no
returnby @saghul in #1558 - Set module internal promise rejection as handled when appropriate by @xim in #1554
- Add a GC-stress CI job by @saghul in #1568
- Fix memory leak in Set.prototype.union / symmetricDifference by @saghul in #1567
- Fix use-after-free in DisposableStack disposal by @saghul in #1566
- Fix type confusion in RegExp.escape with rope strings by @saghul in #1574
- Fix use-after-free from Array
.lengthgrow +pushby @saghul in #1563 - Fix reference leak in Iterator.prototype.find by @saghul in #1573
- Fix BigInt.asUintN of negatives when width is limb-aligned by @littledivy in #1575
- Fix missing module exports for array destructuring by @littledivy in #1576
- Fix double free of a detached ArrayBuffer's backing store by @littledivy in #1578
- Fix for-await-of calling return() on normal completion by @littledivy in #1577
- Await async iterator return() when a for-await loop breaks by @littledivy in #1580
- Make Array.fromAsync elements enumerable by @littledivy in #1581
- Report the correct column number for syntax errors by @littledivy in #1582
- Implement CallSite.prototype.isConstructor() by @littledivy in #1584
- Fix crash on cyclic re-export of an imported binding by @littledivy in #1583
- Name the re-exported module when a re-export is missing by @littledivy in #1586
- Report the correct column for an undefined global reference by @littledivy in #1585
- docs: add RongJS to projects by @butterflyfish in #1589
- Limit named group scopes to 256 by @saghul in #1592
- Bump actions/setup-node from 6 to 7 by @dependabot[bot] in #1593
- Harden against hash collisions by @bnoordhuis in #1590
- Add man pages by @suve in #1595
- Return null from CallSite position getters for native frames by @littledivy in #1597
- Fix subarray species constructor arguments by @littledivy in #1600
- Continue the TypedArray lastIndexOf scan after a shrink by @littledivy in #1602
- Copy bytes in increasing order in TypedArray slice by @littledivy in #1601
- Key module identity by specifier and import attributes by @littledivy in #1603
- Add JS_PromiseMarkAsHandled by @littledivy in #1604
- Do not coerce the value on a TypedArray out-of-bounds write with a foreign receiver by @littledivy in #1599
- Add JS_PromiseThen by @littledivy in #1605
- Fix UAF of a suspended coroutine referenced only via a closure by @saghul in #1569
- Fix double free of a CallSite when the backtrace array insertion fails by @saghul in #1614
- Fix use-after-free when creating the promise resolving functions OOMs by @saghul in #1613
- Fix leak in JSON.stringify() when space is a rope by @saghul in #1612
- Fix integer overflow in the TypedArray sort index array allocation by @saghul in #1611
- Fix reference leak in Atomics.store() on an invalidated buffer by @saghul in #1610
- Fix integer overflow in the Proxy ownKeys() property enumeration by @saghul in #1609
- Fix integer multiplication result cast to unsigned long in js_realloc_array() by @Nidrax in #1608
- Drop js_realloc2 and its allocation-slack feedback by @saghul in #1616
- lre: Do not patch a jump offset that could not be emitted by @saghul in #1615
- Reject out-of-range limits in Iterator.prototype.take/drop by @saghul in #1618
- Implement the Iterator.prototype.join() proposal by @saghul in #1620
- Implement the iterator includes proposal by @saghul in #1619
- Support resizable externally managed ArrayBuffers by @saghul in #1594
- Implement the iterator chunking proposal by @saghul in #1621
- Iterator helper fixes by @saghul in #1622
- Iterator.contact fixes by @saghul in #1623
New Contributors
- @dannote made their first contribution in #1525
- @sdrsdr made their first contribution in #1530
- @vitawrap made their first contribution in #1535
- @xim made their first contribution in #1554
- @butterflyfish made their first contribution in #1589
- @suve made their first contribution in #1595
- @Nidrax made their first contribution in #1608
Full Changelog: v0.15.1...v0.16.0
v0.15.1
What's Changed
- Add an option to print only version info by @mhogomchungu in #1507
- Walk the cause chain when dumping uncaught errors by @saghul in #1509
- Update projects.md by @qr243vbi in #1514
- Actually enable mimalloc in the CMake CLI build by @saghul in #1519
- reject growable SharedArrayBuffer without hooks by @jdcaperon in #1523
New Contributors
- @mhogomchungu made their first contribution in #1507
- @jdcaperon made their first contribution in #1523
Full Changelog: v0.15.0...v0.15.1
v0.15.0
What's Changed
- Fix segfault in JS_NewSymbol with NULL description and align with ES semantics by @engsr6982 in #1447
- add btoa()/atob() builtins by @saghul in #1444
- Bump mymindstorm/setup-emsdk from 15 to 16 by @dependabot[bot] in #1450
- Bump actions/upload-pages-artifact from 4 to 5 by @dependabot[bot] in #1451
- Bump softprops/action-gh-release from 2 to 3 by @dependabot[bot] in #1449
- Add quickjs-go to projects page by @buke in #1453
- Add CSPro project to documentation by @gregvolny in #1455
- Add Uint8Array base64/hex methods by @saghul in #1445
- Port js_allocate_fast_array helper for non-mutating array methods by @saghul in #1456
- Update test262 by @saghul in #1457
- Fix atom leak in JS_NewSymbol by @bnoordhuis in #1461
- find_var: use vd->scope_level consistently after pointer assignment by @jiang1997 in #1466
- Fix receiver extensibility checks in property sets by @jiang1997 in #1464
- Addresses an incomplete fix from 1b0b660 by @jwalker in #1467
- max_uint32 substitution is the minimal patch for an introduced fix to… by @jwalker in #1468
- fix(cmake): avoid qjs/qjs_exe PDB filename collision on Windows parallel builds by @mvanhorn in #1474
- Implement explicit resource management by @saghul in #1458
- Add Nordstjernen web browser to project list by @andreasrosdal in #1477
- docs: document trust requirements for JS_READ_OBJ_BYTECODE and _SAB by @andreasrosdal in #1484
- fix(libc): correct transient-errno predicate in js_waker_signal by @andreasrosdal in #1480
- Fix CMake config installation path to match package name by @qr243vbi in #1479
- Add SECURITY.md by @saghul in #1495
- fix: emit source_loc around iterator_close so for/of return() stack traces report correct line by @mvanhorn in #1473
- Fix CMake config installation path to match exported target name by @CarterLi in #1499
- Add
JS_NewUint64by @CarterLi in #1501 - Fix column reporting for invalid number literals by @uxxca1 in #1498
- Fix part of speech in test262 suite reference by @rdeforest in #1505
- Move __JS_NewShortBigInt to quickjs.c and unify on int32_t by @saghul in #1503
New Contributors
- @buke made their first contribution in #1453
- @gregvolny made their first contribution in #1455
- @jwalker made their first contribution in #1467
- @mvanhorn made their first contribution in #1474
- @andreasrosdal made their first contribution in #1477
- @qr243vbi made their first contribution in #1479
- @CarterLi made their first contribution in #1499
- @uxxca1 made their first contribution in #1498
- @rdeforest made their first contribution in #1505
Full Changelog: v0.14.0...v0.15.0
v0.14.0
What's Changed
- Fix native Big Endian build by @saghul in #1418
- Add JS_GetPendingJobContext by @mrmbernardi in #1419
- Add support for byte imports by @bnoordhuis in #1420
- Work around MSVC definition of infinity by @saghul in #1424
- Make malloc(0) always return NULL by @saghul in #1427
- added JSON.parse source text access by @saghul in #1423
- Fix discarded qualifiers compilation warning with GCC 15.2 by @saghul in #1428
- Handle overflow in expand_fast_array by @bnoordhuis in #1429
- Bump actions/deploy-pages from 4 to 5 by @dependabot[bot] in #1434
- Tame UBsan applying zero offset to null pointer by @saghul in #1432
- Make sure an ArrayBuffer never has a NULL data pointer by @saghul in #1437
- Add run-test262 --no-can-block flag by @ivankra in #1433
- Micro-optimizations to reduce dup/free by @saghul in #1436
- Fix Iterator.concat reentrancy guard by @leegn4a in #1441
- Bump mymindstorm/setup-emsdk from 14 to 15 by @dependabot[bot] in #1442
- Fix UAF in fast array delete by @leegn4a in #1438
- Fix stack size flag for Clang/MSVC ABI builds by @cronfox in #1380
- Support for non-CL Clang on Windows by @HJfod in #981
- Add JS_IsAsyncFunction by @engsr6982 in #1446
New Contributors
- @ivankra made their first contribution in #1433
- @leegn4a made their first contribution in #1441
- @cronfox made their first contribution in #1380
- @HJfod made their first contribution in #981
- @engsr6982 made their first contribution in #1446
Full Changelog: v0.13.0...v0.14.0
v0.13.0
What's Changed
- add import attributes to the normalize function by @nitsky in #1349
- Add update-version.sh script by @saghul in #1351
- Add JS_FreezeArrayBuffer by @bnoordhuis in #1350
- Update copyright notices by @bnoordhuis in #1353
- Add {js,go}-quickjs-wasi-reactor to projects list by @paralin in #1356
- Fix FinalizationRegistry reference counting bug by @bnoordhuis in #1358
- Fix out of bounds read in regex engine by @bnoordhuis in #1357
- Remove SAB support from bjson module by @saghul in #1359
- Fix async generator lifecycle bug by @bnoordhuis in #1360
- Fix file handle leak in js_new_std_file error path by @bnoordhuis in #1362
- Simplify make_obj_error by @bnoordhuis in #1363
- Add os.mkdtemp() and os.mkstemp() by @bnoordhuis in #1364
- Improve std file read/write ergonomics by @bnoordhuis in #1365
- Fix heap use-after-free in FinalizationRegistry by @saghul in #1366
- Optimize String.prototype.concat by @bnoordhuis in #1295
- Add regexp object instantiation fast path by @bnoordhuis in #1367
- Fix UAF in Iterator.concat by @bnoordhuis in #1370
- Add regexp result instantiation fast path by @bnoordhuis in #1369
- Remove get_shape_prop by @bnoordhuis in #1371
- Prevent malloc_size underflolw by @saghul in #1372
- Bump actions/download-artifact from 7 to 8 by @dependabot[bot] in #1373
- Bump actions/upload-artifact from 6 to 7 by @dependabot[bot] in #1374
- Validate function locals count when deserializing by @bnoordhuis in #1381
- LRE fixes by @saghul in #1377
- Add quickjs.ml to projects.md by @davesnx in #1385
- Add python bindings and px to projects.md by @genotrance in #1384
- Add checksum field to bjson by @bnoordhuis in #1386
- Update projects.md with reference to std::slop by @hsaliak in #1388
- Add JS_NewSettledPromise by @saghul in #1389
- Add fast path for Promise creation by @saghul in #1387
- Add linux armv7 build by @anenasa in #1391
- feat: allow build to control the generation of install steps by @Almamu in #1395
- Fix parsing error involving private fields and division by @saghul in #1398
- Fix underflow with generator in iterable by @saghul in #1396
- Fix UAF when handling non-detached var-refs in mapped arguments by @saghul in #1401
- Faster context creation and exception checks in JS_NewContext by @saghul in #1402
- Use a better hash table magic constant by @bnoordhuis in #1403
- Update test262 by @bnoordhuis in #1405
- Sort test262_errors.txt by @bnoordhuis in #1406
- Check return values of fallible functions by @bnoordhuis in #1409
- Remove big endian support by @bnoordhuis in #1412
- Run UBsan also on macOS in the CI by @saghul in #1411
- Fix memory leak in Iterator.prototype.map by @saghul in #1413
- Fix TypedArray.prototype.with TOCTOU heap over-read by @saghul in #1415
- Add support for text imports by @bnoordhuis in #1407
New Contributors
- @nitsky made their first contribution in #1349
- @davesnx made their first contribution in #1385
- @genotrance made their first contribution in #1384
- @hsaliak made their first contribution in #1388
- @anenasa made their first contribution in #1391
- @Almamu made their first contribution in #1395
Full Changelog: v0.12.1...v0.13.0
v0.12.1
What's Changed
- Don't set -Werror by default by @bnoordhuis in #1340
- Fix C23 -Wdiscarded-qualifiers compiler warning by @bnoordhuis in #1338
- Make compiling regular expressions zero copy by @bnoordhuis in #1342
- inline all of cutils, fix embedding from other libraries without cutils by @TaylorRichberger in #1344
New Contributors
- @TaylorRichberger made their first contribution in #1344
Full Changelog: v0.12.0...v0.12.1