Commit graph

230 commits

Author SHA1 Message Date
Saúl Ibarra Corretgé
a9ac7a07ff Add top-level await support
Original author: zamfofex <zamfofex@twdb.moe>
2023-11-01 22:42:59 +01:00
Saúl Ibarra Corretgé
f51616eac8 Don't build with Atomics support by default
It's not currently implemented for Windows which makes the bytecode
generated by qjsc not portable.
2023-11-01 21:39:12 +01:00
Saúl Ibarra Corretgé
5f70d08c02 Update .gitignore 2023-11-01 21:06:41 +01:00
Ben Noordhuis
f2a8f04f13 Enable UBSan sanitizer on CI 2023-11-01 09:31:30 +01:00
Ben Noordhuis
d6fbd6b744 Fix UB signed integer overflow 2023-11-01 09:31:30 +01:00
Ben Noordhuis
4a8372a709 Fix UB left shift of negative number 2023-11-01 09:31:30 +01:00
Ben Noordhuis
83e6fca8be Add UndefinedBehaviorSanitizer support 2023-11-01 09:31:30 +01:00
Ben Noordhuis
a9957cdcee Fix UB nullptr passing to memcpy() 2023-11-01 09:31:30 +01:00
Ben Noordhuis
8217c69157 Fix UB shift into sign bit 2023-11-01 09:31:30 +01:00
Ben Noordhuis
141b7759c7 Enable sanitizers on CI 2023-11-01 05:20:14 +01:00
Ben Noordhuis
cd4579d106 Add MemorySanitizer support 2023-11-01 05:20:14 +01:00
Ben Noordhuis
f8b3a2e93c Fix sloppy mode arguments uninitialized value use
MemorySanitizer complained about uninitialized reads in
the indexed property code path in JS_GetPropertyValue()
with JS_CLASS_MAPPED_ARGUMENTS objects.
2023-11-01 05:20:14 +01:00
Ben Noordhuis
67585d0421 Fix -Wimplicit-const-int-float-conversion warnings
Compare against 0x1p63 instead of INT64_MAX. Converting INT64_MAX to
double rounds it up to INT64_MAX+1.

It made code like `if (d <= INT64_MAX) v = (int64_t)d;` behave subtly
wrong when `d >= 0x1p63` because then `v = (int64_t)d` wraps around to
a negative value.
2023-11-01 05:20:14 +01:00
Ben Noordhuis
62f67892ad
ci: add macos build+test workflow (#3) 2023-10-31 18:07:27 +01:00
Ben Noordhuis
2f7fd38f68
ci: add linux build+test workflow (#2) 2023-10-31 18:01:52 +01:00
bellard
2788d71e82 updated to Unicode 14.0.0 2022-03-06 19:00:24 +01:00
bellard
851695958a updated test262.conf 2022-03-06 18:55:04 +01:00
bellard
446099aa9e added Object.hasOwn() 2022-03-06 18:54:27 +01:00
bellard
b9f58802dc fixed invalid Array.prototype.push/unshift optimization 2022-03-06 18:53:03 +01:00
bellard
b5e62895c6 2021-03-27 release 2021-03-27 11:17:31 +01:00
bellard
204682fb87 2020-11-08 release take 2 2020-11-08 14:44:20 +01:00
bellard
b1f67dfc1a 2020-11-08 release 2020-11-08 14:30:56 +01:00
bellard
7c312df422 2020-09-06 release 2020-09-06 19:10:15 +02:00
bellard
8900766099 2020-07-05 release 2020-09-06 19:07:30 +02:00
bellard
1722758717 2020-04-12 release 2020-09-06 19:04:20 +02:00
bellard
383e2b06c8 2020-03-16 release 2020-09-06 19:02:03 +02:00
bellard
0e8fffd4de 2020-01-19 release 2020-09-06 18:57:11 +02:00
bellard
91459fb672 2020-01-05 release 2020-09-06 18:53:08 +02:00
bellard
9096e544ba test 2020-09-06 18:47:30 +02:00
bellard
831dc3af46
Initial commit 2020-09-06 18:24:53 +02:00