]>
git.kaiwu.me - quickjs.git/log
Fabrice Bellard [Sat, 22 Nov 2025 10:03:45 +0000 (11:03 +0100)]
fixed Worker freeing logic (#462)
Fabrice Bellard [Sat, 22 Nov 2025 10:00:50 +0000 (11:00 +0100)]
- optimized Regexp.prototype.exec
- optimized String.prototype.replace
- optimized 'arguments' object creation
- optimized access to non strict 'arguments' elements
Fabrice Bellard [Sat, 22 Nov 2025 09:44:19 +0000 (10:44 +0100)]
faster and simpler implementation of regexp backtracking
Fabrice Bellard [Sat, 15 Nov 2025 13:52:50 +0000 (14:52 +0100)]
fixed BJSON array serialization (#457)
Fabrice Bellard [Sat, 15 Nov 2025 11:22:50 +0000 (12:22 +0100)]
- Added Iterator.concat (initial patch by bnoordhuis)
- optimized js_iterator_concat_next()
- added more guards against recursion in Iterator.concat operations
Fabrice Bellard [Sat, 15 Nov 2025 11:18:18 +0000 (12:18 +0100)]
optimized add/sub int32 overflow
Fabrice Bellard [Sat, 15 Nov 2025 11:10:44 +0000 (12:10 +0100)]
added error checking in JS_InstantiateFunctionListItem()
Fabrice Bellard [Sat, 15 Nov 2025 11:01:20 +0000 (12:01 +0100)]
- Closure optimization (go from quadratic to linear time when the number
of closure variables is large)
- Separated JSVarDef and JSBytecodeVarDef to simplify the code and save memory
- fixed debug info stripping with global variables
Fabrice Bellard [Wed, 5 Nov 2025 10:46:20 +0000 (11:46 +0100)]
Restore a mistakenly removed goto on error in js_build_module_ns() (igorburago)
Fabrice Bellard [Wed, 5 Nov 2025 10:41:18 +0000 (11:41 +0100)]
fixed JS_PROP_AUTOINIT handling in js_closure_define_global_var() (#455)
Fabrice Bellard [Wed, 5 Nov 2025 10:29:03 +0000 (11:29 +0100)]
fixed exception handling in put_var operation (regression introduced by commit
a6816be ) (#454)
Fabrice Bellard [Mon, 3 Nov 2025 17:52:39 +0000 (18:52 +0100)]
More informative "not a constructor" error message (initial patch by bnoordhuis) (#368)
Fabrice Bellard [Mon, 3 Nov 2025 17:38:20 +0000 (18:38 +0100)]
Fix length check in ArrayBuffer.prototype.slice (bnoordhuis) (#451)
Fabrice Bellard [Mon, 3 Nov 2025 17:29:10 +0000 (18:29 +0100)]
fixed DataView resizing
Fabrice Bellard [Mon, 3 Nov 2025 17:23:19 +0000 (18:23 +0100)]
Fix use-after-free in ArrayBuffer.prototype.transfer (bnoordhuis) (#450) - use js_array_buffer_update_typed_arrays() in JS_DetachArrayBuffer()
Fabrice Bellard [Mon, 3 Nov 2025 16:22:18 +0000 (17:22 +0100)]
qjs: added --strict option - don't consider included files as modules - allow module and strict code with -e option
Fabrice Bellard [Mon, 3 Nov 2025 16:14:12 +0000 (17:14 +0100)]
removed duplicate test
Fabrice Bellard [Mon, 3 Nov 2025 16:08:59 +0000 (17:08 +0100)]
Much faster destructuring at the expense of a slight incompatibility
with the spec when direct evals are present (v8 behaves the same way).
Fabrice Bellard [Mon, 3 Nov 2025 15:57:20 +0000 (16:57 +0100)]
optimized global variable access
Fabrice Bellard [Sat, 18 Oct 2025 10:04:12 +0000 (12:04 +0200)]
removed uninitialized variable
Fabrice Bellard [Sat, 18 Oct 2025 09:09:17 +0000 (11:09 +0200)]
updated test results
Fabrice Bellard [Sat, 18 Oct 2025 09:05:05 +0000 (11:05 +0200)]
fixed operation order in Regexp constructor
Fabrice Bellard [Sat, 18 Oct 2025 08:50:51 +0000 (10:50 +0200)]
changed module rejection order according to spec change
Fabrice Bellard [Thu, 16 Oct 2025 13:21:24 +0000 (15:21 +0200)]
optimized Array.prototype.push
Fabrice Bellard [Thu, 16 Oct 2025 13:10:58 +0000 (15:10 +0200)]
inlined the get_length operation
Fabrice Bellard [Thu, 16 Oct 2025 13:00:29 +0000 (15:00 +0200)]
added js_string_eq()
Fabrice Bellard [Mon, 13 Oct 2025 12:51:37 +0000 (14:51 +0200)]
stricter year parsing in Date
Fabrice Bellard [Mon, 13 Oct 2025 12:11:47 +0000 (14:11 +0200)]
fixed argument evaluation order in Date constructor and Date.UTC()
Fabrice Bellard [Mon, 13 Oct 2025 11:51:25 +0000 (13:51 +0200)]
faster and safer dbuf functions (#443)
Fabrice Bellard [Sun, 12 Oct 2025 11:28:37 +0000 (13:28 +0200)]
test262 update
Fabrice Bellard [Sun, 12 Oct 2025 11:23:50 +0000 (13:23 +0200)]
fixed regression in error message display introduced in commit
42eb279
Fabrice Bellard [Sat, 11 Oct 2025 09:13:13 +0000 (11:13 +0200)]
compilation fix for clang
Fabrice Bellard [Sat, 11 Oct 2025 08:59:21 +0000 (10:59 +0200)]
Faster context creation and exception checks in JS_NewContext (#404)
- simplified internal object init
- check exceptions in JS_NewContext()
- preallocated std object properties
- preallocated more atoms
Fabrice Bellard [Wed, 8 Oct 2025 12:16:51 +0000 (14:16 +0200)]
update
Fabrice Bellard [Wed, 8 Oct 2025 12:11:27 +0000 (14:11 +0200)]
faster appending of elements in arrays
Fabrice Bellard [Wed, 8 Oct 2025 09:32:17 +0000 (11:32 +0200)]
optimized string_buffer_putc()
Fabrice Bellard [Tue, 7 Oct 2025 17:10:27 +0000 (19:10 +0200)]
optimized post_inc and post_dec
Fabrice Bellard [Sat, 4 Oct 2025 08:46:29 +0000 (10:46 +0200)]
optimized array access by inlining get_array_el, get_array_el2, get_array_el3 and put_array_el
Fabrice Bellard [Fri, 3 Oct 2025 14:52:17 +0000 (16:52 +0200)]
removed JS_PROP_NO_ADD
Fabrice Bellard [Fri, 3 Oct 2025 13:41:21 +0000 (15:41 +0200)]
inlined fast path for get_field, get_field2 and put_field
Fabrice Bellard [Fri, 3 Oct 2025 12:26:13 +0000 (14:26 +0200)]
- optimized global variable access
- removed full compliance with the spec for strict mode variable
assignment so that they are as fast as in non strict mode (V8,
SpiderMonkey and JavascriptCore do the same, so IMHO the spec should
be updated).
Fabrice Bellard [Fri, 3 Oct 2025 10:25:05 +0000 (12:25 +0200)]
optimize the create of arrays - optimized the rest and array_from opcodes
Fabrice Bellard [Fri, 3 Oct 2025 10:00:26 +0000 (12:00 +0200)]
Improve error handling in Promise.withResolvers (bnoordhuis)
Fabrice Bellard [Fri, 3 Oct 2025 09:55:50 +0000 (11:55 +0200)]
updated test262
bellard [Tue, 30 Sep 2025 08:35:00 +0000 (10:35 +0200)]
Merge pull request #408 from nickva/run-test262-in-ci
Run test262 tests in CI
Nick Vatamaniuc [Tue, 13 May 2025 03:35:22 +0000 (23:35 -0400)]
Run test262 tests in CI
Run test262 tests for Linux, macOS and Cosmopolitan
Add a Makefile `test2-bootstrap` helper to clone and patch test262 tests at
a particular commit. Running with the latest commit noticed a few tests were
failing and added them to the errors list.
The CI environment, especially for macOS, was a bit more unpredictable and was
failing in atomics tests due to lower timeouts in the `atomicsHelper` so double
the timeouts. The time didn't worsen too much. It still takes about 2-3 min.
Fabrice Bellard [Mon, 29 Sep 2025 14:12:23 +0000 (16:12 +0200)]
simplified math.sumPrecise()
Fabrice Bellard [Mon, 29 Sep 2025 13:13:04 +0000 (15:13 +0200)]
fixed Date parsing: "1997-03-08 11:19:10-0700" is a valid date and "1997-03-08T11:19:10-07" should yield an error
Fabrice Bellard [Mon, 29 Sep 2025 10:10:36 +0000 (12:10 +0200)]
fixed Atomics.pause() in the NaN boxing case (32 bit cpu)
Fabrice Bellard [Sat, 27 Sep 2025 16:44:19 +0000 (18:44 +0200)]
added Math.sumPrecise()
Fabrice Bellard [Sat, 27 Sep 2025 08:24:48 +0000 (10:24 +0200)]
added Map and WeakMap upsert methods (bnoordhuis)
Fabrice Bellard [Mon, 22 Sep 2025 16:58:18 +0000 (18:58 +0200)]
- added Atomics.pause (bnoordhuis)
- use the pause instruction for x86 and ARM64 in Atomics.pause()
Fabrice Bellard [Mon, 22 Sep 2025 16:37:41 +0000 (18:37 +0200)]
- added resizable array buffers (bnoordhuis)
- fixed Atomics.wait, Atomics.notify, TypedArray.prototype.lastIndexOf
- fixed JS_PreventExtensions() with resizable typed arrays
Fabrice Bellard [Mon, 22 Sep 2025 12:48:43 +0000 (14:48 +0200)]
fixed parsing of computed property name
Fabrice Bellard [Sun, 21 Sep 2025 14:41:02 +0000 (16:41 +0200)]
- added ArrayBuffer.prototype.transfer (Divy Srivastava)
- fixed transfer when the ArrayBuffer was allocated with a custom allocator
Fabrice Bellard [Sat, 20 Sep 2025 16:30:02 +0000 (18:30 +0200)]
Iterator functions:
- removed memory leak
- don't close iterator when IteratorStepValue fails
- fixed Iterator Wrap next() and return() arguments
- fixed Iterator.from()
Fabrice Bellard [Sat, 20 Sep 2025 15:05:13 +0000 (17:05 +0200)]
Iterator is an abstract class (bnoordhuis)
Fabrice Bellard [Sat, 20 Sep 2025 15:01:52 +0000 (17:01 +0200)]
fix Iterator.prototype.constructor (initial patch by bnoordhuis)
Fabrice Bellard [Sat, 20 Sep 2025 14:47:43 +0000 (16:47 +0200)]
added Iterator.prototype.[drop,filter,flatMap,map,take,every,find,forEach,some,reduce,[Symbol.toStringTag]] (saghul)
Fabrice Bellard [Sat, 20 Sep 2025 14:27:45 +0000 (16:27 +0200)]
added Iterator.prototype.toArray and Iterator.from (bnoordhuis)
Fabrice Bellard [Sat, 20 Sep 2025 14:05:36 +0000 (16:05 +0200)]
added the Iterator object
Fabrice Bellard [Sat, 20 Sep 2025 12:31:14 +0000 (14:31 +0200)]
removed uninitialized values - removed useless init
Fabrice Bellard [Sat, 20 Sep 2025 12:21:39 +0000 (14:21 +0200)]
set methods: removed memory leaks - fixed ordering of property access - fixed conversion to integer of 'size' in GetSetRecord() - added missing iterator close - factorized code
Fabrice Bellard [Sat, 20 Sep 2025 10:19:50 +0000 (12:19 +0200)]
added set methods (bnoordhuis)
Fabrice Bellard [Thu, 18 Sep 2025 08:42:13 +0000 (10:42 +0200)]
removed memory leak (#441)
Fabrice Bellard [Thu, 18 Sep 2025 08:28:33 +0000 (10:28 +0200)]
updated release.sh
Fabrice Bellard [Sat, 13 Sep 2025 08:51:18 +0000 (10:51 +0200)]
new release
Fabrice Bellard [Sat, 13 Sep 2025 08:22:24 +0000 (10:22 +0200)]
Fix crash on failure to read bytecode (penneryu)
Fabrice Bellard [Wed, 10 Sep 2025 16:40:10 +0000 (18:40 +0200)]
more efficient handling of strings in JSON.stringify()
Fabrice Bellard [Wed, 10 Sep 2025 16:25:34 +0000 (18:25 +0200)]
better pretty printing of strings - removed String.prototype.__quote()
Fabrice Bellard [Wed, 27 Aug 2025 14:06:44 +0000 (16:06 +0200)]
qjsc: handle C name conflicts between scripts and modules (#432)
Fabrice Bellard [Wed, 27 Aug 2025 13:19:45 +0000 (15:19 +0200)]
run-test262: added --count_skipped_features option
Fabrice Bellard [Wed, 27 Aug 2025 13:16:52 +0000 (15:16 +0200)]
removed function cast warnings (initial patch by saghul)
Fabrice Bellard [Mon, 25 Aug 2025 16:20:58 +0000 (18:20 +0200)]
fixed handling of 8 bit unicode strings in RegExp (regression introduced by commit
a4ac84d )
Fabrice Bellard [Mon, 25 Aug 2025 15:54:19 +0000 (17:54 +0200)]
Adjust lastIndex to leading surrogate when inside a surrogate pair in unicode RegExp (initial patch by auvred)
Fabrice Bellard [Mon, 25 Aug 2025 15:14:47 +0000 (17:14 +0200)]
limit function and regexp bytecode to 1G to avoid buffer overflows (the bytecode generators assume that bytecode offsets can fit a 32 bit signed integer
Fabrice Bellard [Mon, 25 Aug 2025 14:48:36 +0000 (16:48 +0200)]
avoid side effects in JS_PrintValue() which may lead to crashes in print() and js_std_promise_rejection_check()
Fabrice Bellard [Mon, 25 Aug 2025 13:25:41 +0000 (15:25 +0200)]
fixed buffer overflow in TypedArray.prototype.lastIndexOf()
Fabrice Bellard [Mon, 25 Aug 2025 13:06:19 +0000 (15:06 +0200)]
fixed buffer overflow in js_bigint_to_string1()
Fabrice Bellard [Mon, 25 Aug 2025 12:50:04 +0000 (14:50 +0200)]
fixed crash in OP_add_loc if the variable is modified in JS_ToPrimitiveFree()
Fabrice Bellard [Mon, 25 Aug 2025 12:24:06 +0000 (14:24 +0200)]
fixed buffer overflow in js_bigint_from_string()
Fabrice Bellard [Mon, 25 Aug 2025 12:01:43 +0000 (14:01 +0200)]
TypedArray.prototype.subarray: fixed the step at which '[[ByteOffset]]' is read
Fabrice Bellard [Mon, 25 Aug 2025 10:05:21 +0000 (12:05 +0200)]
test262 update
Fabrice Bellard [Wed, 9 Jul 2025 12:39:19 +0000 (14:39 +0200)]
removed module leak in js_std_eval_binary() (#425)
Fabrice Bellard [Sat, 28 Jun 2025 15:41:58 +0000 (17:41 +0200)]
fixed GC logic so that a module can live after a JSContext is destroyed (#280) - update the reference count for the realm in jobs and FinalizationRegistry
Fabrice Bellard [Sat, 28 Jun 2025 15:25:54 +0000 (17:25 +0200)]
fixed module async evaluation logic - added DUMP_MODULE_EXEC
Fabrice Bellard [Sat, 28 Jun 2025 08:43:26 +0000 (10:43 +0200)]
update test262
Fabrice Bellard [Sat, 14 Jun 2025 09:51:48 +0000 (11:51 +0200)]
update Changelog
Fabrice Bellard [Sat, 14 Jun 2025 09:42:54 +0000 (11:42 +0200)]
added Error.isError() (bnoordhuis)
bellard [Sat, 14 Jun 2025 09:30:13 +0000 (11:30 +0200)]
Merge pull request #418 from nickva/fix-byteoffset-for-detached-array-buffers
Fix byteOffset for detached array buffers
Nick Vatamaniuc [Sat, 7 Jun 2025 05:12:54 +0000 (01:12 -0400)]
Fix Windows MinGW CI Build
```
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Error: Process completed with exit code 100.
```
As the error suggests `apt update` seems to fix it
Nick Vatamaniuc [Sat, 7 Jun 2025 04:42:50 +0000 (00:42 -0400)]
Read byteOffset for detached buffers
The spec [1] expects to read `byteOffset` even for detached buffers.
Noticed a new test262 test [2] failed and there an an existing one we skipped
as well for the same reason.
[1] https://tc39.es/ecma262/#sec-%typedarray%.prototype.subarray
[2] https://github.com/tc39/test262/blob/main/test/built-ins/TypedArray/prototype/subarray/byteoffset-with-detached-buffer.js
Fix: https://github.com/bellard/quickjs/issues/417
Fabrice Bellard [Thu, 29 May 2025 18:01:24 +0000 (20:01 +0200)]
fixed js_bigint_to_string1() (#412)
Fabrice Bellard [Sat, 24 May 2025 13:43:14 +0000 (15:43 +0200)]
update tests
Fabrice Bellard [Sat, 24 May 2025 13:36:08 +0000 (15:36 +0200)]
added missing 'Unknown' unicode Script
Fabrice Bellard [Sat, 24 May 2025 11:26:36 +0000 (13:26 +0200)]
update tests
Fabrice Bellard [Sat, 24 May 2025 11:01:50 +0000 (13:01 +0200)]
new keyword cannot be used with an optional chain
Fabrice Bellard [Sat, 24 May 2025 10:47:35 +0000 (12:47 +0200)]
fixed parsing of function definition
Fabrice Bellard [Sat, 24 May 2025 10:09:46 +0000 (12:09 +0200)]
more robust out of memory handling (#406)
Fabrice Bellard [Sat, 24 May 2025 09:32:22 +0000 (11:32 +0200)]
avoid win32 crash in getTimezoneOffset() if time is < 1970 (#238)