Fabrice Bellard
8b5b1277ad
reworked weak references so that cycles are (hopefully) correctly handled - added Symbol as WeakMap key, WeakRef and FinalizationRegistry
2025-04-05 12:49:29 +02:00
Fabrice Bellard
bf164d640f
fixed eval with empty argument scope ( #249 )
2025-03-31 18:33:22 +02:00
Fabrice Bellard
6ac04e1bf2
removed useless printf() ( #257 )
2025-03-31 18:00:27 +02:00
Fabrice Bellard
0d7aaed71c
ensure that JS_IteratorNext() returns JS_UNDEFINED when done = TRUE ( #394 )
2025-03-31 13:37:37 +02:00
Fabrice Bellard
2634856087
removed invalid tests
2025-03-28 10:19:28 +01:00
Fabrice Bellard
56c47f7d2a
fixed exception handling in AsyncFromSyncIterator and async for of
2025-03-28 10:11:15 +01:00
Fabrice Bellard
67de495254
fixed typed array set operation when obj != receiver
2025-03-27 17:06:26 +01:00
Fabrice Bellard
b0c1a12196
fixed set_date_field()
2025-03-27 16:28:56 +01:00
Fabrice Bellard
d045a13b4b
disable rejection tracker in the repl - repl cleanup
2025-03-27 15:34:20 +01:00
Fabrice Bellard
e8cfe8fede
removed memory leak in string padding (issue #274 )
2025-03-27 14:43:25 +01:00
Fabrice Bellard
d20ffec831
exit by default on unhandled promise rejections (issue #305 )
2025-03-27 14:22:58 +01:00
Fabrice Bellard
dec4aca27a
update test262_errors.txt
2025-03-25 19:17:19 +01:00
Fabrice Bellard
b31bb20666
updated to unicode 16.0.0 (bnoordhuis) - updated test262
2025-03-25 19:08:19 +01:00
Fabrice Bellard
29630bcea6
added missing header
2025-03-25 16:49:41 +01:00
Fabrice Bellard
2a4f629a3b
added -Wno-infinite-recursion
2025-03-25 16:42:05 +01:00
Fabrice Bellard
6cc02b4421
more use of js_new_string8 - inlined JS_NewString() (initial patch by Charlie Gordon)
2025-03-25 16:33:47 +01:00
Fabrice Bellard
156d981afe
added string ropes for faster concatenation of long strings (issue #67 )
2025-03-25 16:01:40 +01:00
Fabrice Bellard
372ad84e9a
more dtoa bench (Charlie Gordon)
2025-03-22 12:50:11 +01:00
Fabrice Bellard
a44011ed5a
enable dtoa tests on win32
2025-03-22 12:40:37 +01:00
Fabrice Bellard
d1bb520f29
reduced memory usage of Map hash table
2025-03-22 11:28:23 +01:00
Fabrice Bellard
49413985eb
fixed hash_map_resize() - added Map/WeakMap in microbench
2025-03-22 10:54:21 +01:00
Fabrice Bellard
9f65ef1950
simplified and fixed backtrace_barrier ( #306 )
2025-03-20 13:37:07 +01:00
Fabrice Bellard
978756ad37
protect against printf errors ( #319 )
2025-03-20 11:47:07 +01:00
Fabrice Bellard
993660621a
added new dtoa library to print and parse float64 numbers. It is necessary to fix corner cases (e.g. radix != 10) and to have correct behavior regardless of the libc implementation.
2025-03-19 19:07:57 +01:00
Fabrice Bellard
9f1864a268
msan fix ( #389 )
2025-03-19 14:27:01 +01:00
Fabrice Bellard
131408fa07
simplified js_bigint_from_float64()
2025-03-19 13:56:10 +01:00
Fabrice Bellard
7399069dc1
fixed examples/hello_module compilation ( #240 )
2025-03-19 13:29:54 +01:00
Fabrice Bellard
6d6893bfa3
fixed BigInt hashing - removed -fno-bigint in qjsc and JS_AddIntrinsicBigInt() (BigInt is now considered as a base object)
2025-03-19 12:33:54 +01:00
Fabrice Bellard
5a16c0c1eb
fixed JS_DumpValue() for BigInt
2025-03-19 11:59:47 +01:00
Fabrice Bellard
6de88859e7
more bignum cleanup
2025-03-19 11:43:31 +01:00
Fabrice Bellard
96e7965cf4
removed the ability to do simultaneous 64 and 32 bit x86 builds in order to simplify the Makefile
2025-03-19 10:54:04 +01:00
bellard
22dbf49e25
Merge pull request #391 from nickva/try-to-fix-multiplatform-builds
...
Fix multiarch CI builds
2025-03-19 10:33:03 +01:00
Nick Vatamaniuc
e9c69f7ae8
Fix multiarch CI builds
...
Fix: https://github.com/bellard/quickjs/issues/390
2025-03-18 19:43:39 -04:00
Fabrice Bellard
ee4cd4deac
compilation fix
2025-03-18 18:45:21 +01:00
Fabrice Bellard
543897ab7b
added missing variable
2025-03-18 18:34:05 +01:00
Fabrice Bellard
61e8b94428
removed bignum support and qjscalc - added optimized BigInt implementation
2025-03-18 18:29:10 +01:00
Fabrice Bellard
837a697588
regexp: allow [\-] in unicode mode ( #373 )
2025-03-13 19:00:25 +01:00
Fabrice Bellard
1be68b3345
fixed CONFIG_ALL_UNICODE compilation
2025-03-13 18:13:25 +01:00
Fabrice Bellard
9bd10d8eb9
simplified the handling of closures
2025-03-13 17:44:55 +01:00
Fabrice Bellard
dfd9c93ab0
added missing stack overflow check in JSON.stringify()
2025-03-13 17:27:38 +01:00
Fabrice Bellard
25aaa77370
allow regexp interruption (e.g. with Ctrl-C in the REPL)
2025-03-13 17:17:51 +01:00
Fabrice Bellard
027f3cb5e4
fix crash when add_property() fails on build arguments (penneryu)
2025-03-13 16:30:02 +01:00
Fabrice Bellard
c739debf0f
microbench: use toFixed()
2025-03-13 16:23:13 +01:00
Fabrice Bellard
6474793e38
JS_SetPropertyInternal(): avoid recursing thru the prototypes if the property is found in a prototype
2025-03-13 16:04:38 +01:00
Fabrice Bellard
030333cff6
fixed date parsing in case there is more than nine initial digits (initial patch by nickva)
2025-03-13 15:52:53 +01:00
Akos Kiss
6e2e68fd08
Fix termination in Worker test
...
Function names are case sensitive, `onMessage` is not the same as
`onmessage`.
Related to #98
2024-07-27 23:40:48 +02:00
Pino Toscano
012451d5f3
Define a fallback PATH_MAX if not available
...
PATH_MAX is optional in POSIX, and it is not available on GNU/Hurd.
While it could be possible to not rely on PATH_MAX, for now provide a
fallback definition (which should be safe enough) to get quickjs built
on GNU/Hurd.
2024-07-21 10:24:01 +02:00
Pino Toscano
8624b5c6f0
Use ftello() & fseeko() on any OS based on GNU libc
...
Strictly speaking, they are available in POSIX.1-2008 [1][2], so they
could be used on more platforms/OSes. To be cautious, enable them when
using GNU libc, since they have been available with that libc for a
very long time.
[1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/ftell.html
[2] https://pubs.opengroup.org/onlinepubs/9699919799/functions/fseek.html
2024-07-21 10:24:01 +02:00
Pino Toscano
34894936d8
Use malloc_usable_size() on any OS based on GNU libc
...
malloc_usable_size() is a GNU extension in GNU libc; hence, use it
every time GNU libc is used, rather than only on Linux.
2024-07-21 10:24:01 +02:00
Kasper Isager Dalsgarð
5417ab0159
Fix JS_HasException()
when null
is thrown ( #313 )
...
Use `JS_UNINITIALIZED` instead of `JS_NULL` when no exception is pending, so `null` can be thrown and distinguished from no exception pending.
2024-07-17 13:58:08 +02:00