Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix UB signed integer overflow in js_math_imul | Charlie Gordon | 2024-03-02 | 1 | -5/+7 |
| | | | | | | | - Use uint32_t arithmetics and Standard conformant conversion to avoid UB in js_math_imul. - add builtin tests - use specific object directories for SAN targets | ||||
* | Fix UB left shift of negative number | Ben Noordhuis | 2024-03-02 | 1 | -1/+1 |
| | |||||
* | Remove unnecessary ssize_t posix-ism | Ben Noordhuis | 2024-03-02 | 1 | -1/+1 |
| | | | | | | | | ssize_t is not always available and the cast it was used in wasn't necessary in the first place, the value already has the right type. Note that the field malloc_limit is an int64_t in JSMemoryUsage whereas it is a size_t in JSMallocState. | ||||
* | Improve string concatenation hack | Charlie Gordon | 2024-03-02 | 2 | -78/+96 |
| | | | | | | - add more cases of in place string concatenation this temporary hack improves the microbench timing by 30% but has little impact on the test262 timings. | ||||
* | Reverse e140122202cc24728b394f8f90fa2f4a2d7c397e | Charlie Gordon | 2024-03-02 | 1 | -2/+0 |
| | | | | | | | - remove temporary fix for MemorySanitizer: setting p->u.array.count to 0 silenced a warning in JS_GetPropertyValue on a hacky test agains the length of fast_array object. This hack was removed by commit c3635861f63931255c7a953bccbb0e2e90cc75aa. | ||||
* | Fix test262 error | Charlie Gordon | 2024-03-02 | 1 | -2/+8 |
| | | | | | | - force evaluation order in `set_date_fields` - fix evaluation error in test262/test/built-ins/Date/UTC/fp-evaluation-order.js:19: unexpected error: Test262Error: precision in MakeDate Expected SameValue(«34448384», «34447360») to be true | ||||
* | Fix sloppy mode arguments uninitialized value use | Ben Noordhuis | 2024-03-02 | 1 | -0/+2 |
| | | | | | | MemorySanitizer complained about uninitialized reads in the indexed property code path in JS_GetPropertyValue() with JS_CLASS_MAPPED_ARGUMENTS objects. | ||||
* | Remove unsafe sprintf() and strcat() calls | Ben Noordhuis | 2024-03-02 | 1 | -22/+24 |
| | | | | | Prep work for enabling the sanitizers on macos CI since they are marked as deprecated and cause the build to fail when -Werror is enabled. | ||||
* | Fix undefined behavior (UBSAN) | Charlie Gordon | 2024-03-02 | 1 | -2/+4 |
| | |||||
* | Fix UB in js_dtoa1 | Saúl Ibarra Corretgé | 2024-03-02 | 1 | -1/+3 |
| | |||||
* | Fix runtime bugs | Charlie Gordon | 2024-03-02 | 1 | -13/+9 |
| | | | | | - fix string leak in `js_printf_internal` on errors - read `errno` before potential side effects in `js_os_stat` | ||||
* | Strip trailing spaces | Charlie Gordon | 2024-03-02 | 14 | -760/+760 |
| | |||||
* | avoid using INT64_MAX in double comparisons because it cannot be exactly ↵ | Fabrice Bellard | 2024-03-02 | 1 | -2/+3 |
| | | | | represented as a double (bnoordhuis) | ||||
* | fixed Promise return in the REPL by using a wrapper object in async ↵ | Fabrice Bellard | 2024-03-02 | 1 | -2/+14 |
| | | | | std.evalScript() (github issue #231) | ||||
* | export JS_GetModuleNamespace (github issue #34) | Fabrice Bellard | 2024-03-02 | 2 | -7/+6 |
| | |||||
* | simplified and fixed arrow function parsing (github issue #226) | Fabrice Bellard | 2024-03-02 | 1 | -46/+57 |
| | |||||
* | new release | Fabrice Bellard | 2024-03-02 | 1 | -1/+1 |
| | |||||
* | fixed JS_GetScriptOrModuleName() in direct or indirect eval code | Fabrice Bellard | 2024-03-02 | 1 | -11/+24 |
| | |||||
* | quickjs: reduce diff with upstream | bptato | 2024-03-02 | 2 | -61/+18 |
| | | | | | | * the uint8array thing is probably from txiki.js, but we never used it * upstream now has JS_GetClassID, importing that instead... (so this commit won't build :/) | ||||
* | Update Chagashi | bptato | 2024-02-26 | 1 | -5/+5 |
| | |||||
* | Update Chagashi | bptato | 2024-02-23 | 1 | -8/+5 |
| | |||||
* | Replace Chakasu with Chagashi | bptato | 2024-02-22 | 2 | -0/+9 |
| | | | | | | The API is horrid :( but at least it copies less. TODO: think of a better API. | ||||
* | Update chame | bptato | 2024-02-21 | 1 | -5/+5 |
| | |||||
* | Update chame | bptato | 2024-02-08 | 1 | -5/+5 |
| | |||||
* | Update chame | bptato | 2024-02-07 | 1 | -5/+5 |
| | |||||
* | Incremental rendering | bptato | 2024-02-07 | 1 | -7/+5 |
| | | | | | | | | | | | | Yay! Admittedly, it is not very useful in its current form, except maybe on very slow networks. The problem is that renderDocument is *slow*, so we only run it when onload fails to consume all bytes from the network in a single pass. Even then, we are guaranteed to get a FOUC, since CSS is only downloaded in finishLoad(). Well, I think it's cool, anyway. | ||||
* | Update chame | bptato | 2024-02-07 | 1 | -5/+7 |
| | | | | | | | | * Update chame to the latest version * Get rid of nodeType usage * Add atoms * Re-implement DOM attributes * document.write | ||||
* | fix bug in prev commit | bptato | 2024-02-05 | 1 | -1/+1 |
| | | | | it's 0, not 1 :( | ||||
* | regex: fix 8-bit narrow strings in JS | bptato | 2024-02-05 | 1 | -25/+39 |
| | | | | | The previous approach to add UTF-8 support to libregexp was broken. This time, we use a separate flag (cbuf_len == 3) to indicate UTF-8 input. | ||||
* | quickjs: patch libunicode.h to use LRE_BOOL | bptato | 2024-01-15 | 1 | -2/+2 |
| | | | | | | | This way it actually compiles :) (QJS includes cutils.h too, so BOOL works there. We don't, so this is the easiest fix.) | ||||
* | native cosmopolitan build | Fabrice Bellard | 2024-01-11 | 1 | -16/+5 |
| | |||||
* | more portable and Windows version for getTimezoneOffset() (github issue #122) | Fabrice Bellard | 2024-01-11 | 1 | -9/+24 |
| | |||||
* | regexp: fixed the zero advance logic in quantifiers (github issue #158) | Fabrice Bellard | 2024-01-11 | 2 | -74/+42 |
| | |||||
* | optional chaining fixes (github issue #103) | Fabrice Bellard | 2024-01-11 | 2 | -7/+111 |
| | |||||
* | fixed Date.toLocaleString() (kuzmas) | Fabrice Bellard | 2024-01-11 | 1 | -1/+1 |
| | |||||
* | fixed regexp case insensitive flag | Fabrice Bellard | 2024-01-11 | 4 | -196/+374 |
| | |||||
* | fixed next token parsing after a function definition (github issue #77) | Fabrice Bellard | 2024-01-11 | 1 | -27/+51 |
| | |||||
* | fixed class name init in static initializers | Fabrice Bellard | 2024-01-11 | 1 | -17/+10 |
| | |||||
* | avoid potentially undefined behavior and make valgrind happy (bnoordhuis) ↵ | Fabrice Bellard | 2024-01-11 | 1 | -14/+12 |
| | | | | (github issue #153) | ||||
* | make for in faster and spec compliant (github issue #137) | Fabrice Bellard | 2024-01-11 | 1 | -86/+143 |
| | |||||
* | fixed test262: derived-this-uninitialized-realm.js | Fabrice Bellard | 2024-01-11 | 2 | -4/+28 |
| | |||||
* | added a comment for non-initialized warning in Valgrind (github issue #153) | Fabrice Bellard | 2024-01-11 | 1 | -0/+10 |
| | |||||
* | added 'in' operator for private fields | Fabrice Bellard | 2024-01-11 | 2 | -75/+162 |
| | |||||
* | class static block (initial patch by bnoordhuis) | Fabrice Bellard | 2024-01-11 | 1 | -17/+76 |
| | |||||
* | fixed crash in JS_DumpMemoryUsage (github issue #65) | Fabrice Bellard | 2024-01-11 | 1 | -2/+2 |
| | |||||
* | allow 'await' in the REPL and added os.sleepAsync() | Fabrice Bellard | 2024-01-11 | 2 | -2/+5 |
| | |||||
* | make JS_NewClassID thread safe | Fabrice Bellard | 2024-01-11 | 1 | -1/+10 |
| | |||||
* | added Error cause | Fabrice Bellard | 2024-01-11 | 2 | -6/+21 |
| | |||||
* | added os.now() | Fabrice Bellard | 2023-12-28 | 1 | -30/+0 |
| | |||||
* | define the same atoms with or without CONFIG_ATOMICS (github issue #76) | Fabrice Bellard | 2023-12-28 | 1 | -2/+2 |
| |