Commit Graph

  • 2385035568 Migrate to Codeberg. master Tor Andersson 2025-08-13 15:56:44 +02:00
  • 05cd646bad Bug 708625: Use more common "stack" property for error stack trace. 1.3.7 Tor Andersson 2025-06-23 14:15:36 +02:00
  • f5b6492769 Issue #202: Special case for empty substring that splits surrogate pair. Tor Andersson 2025-06-16 15:48:52 +02:00
  • 4bfb1a2575 Fix glitch with escape \x2d being treated as - in character classes. Tor Andersson 2025-05-05 13:10:43 +02:00
  • 94ec2f2d7c Update character tables to include SpecialCasing.txt. Tor Andersson 2025-02-10 11:21:38 +01:00
  • cc569c5fa9 Update character tables to Unicode 16. 1.3.6 Tor Andersson 2025-01-31 15:38:04 +01:00
  • aeb584ce40 Remove stale IRC link. Tor Andersson 2025-01-27 00:09:55 +01:00
  • 91abee5641 Issue 193 and issue 194: Always use heapsort instead of quicksort. Tor Andersson 2025-01-03 13:25:06 +01:00
  • 02147f5a9f Simplify Array.prototype.sort by sorting in place without libc. Tor Andersson 2024-11-21 18:41:32 +01:00
  • 42e29f6816 Simplify Array.prototype.sort by sorting in place using quicksort. sort Tor Andersson 2024-11-21 18:41:32 +01:00
  • 0df0707f2f Release 1.3.5. 1.3.5 Tor Andersson 2024-06-20 13:01:31 +02:00
  • 40556b31c6 Issue #130: Fix bug with String.prototype.split(RegExp). Tor Andersson 2024-01-26 14:18:08 +01:00
  • d2697fd643 Expose extended unicode characters as surrogate pairs in String methods. Tor Andersson 2024-01-23 14:33:04 +01:00
  • a442a0418f Issue #164: Use correct scope for function declaration bindings. Tor Andersson 2024-01-22 14:17:42 +01:00
  • f91537691f TypedArray extension. extensions Tor Andersson 2024-01-20 12:46:22 +01:00
  • 4892c6e157 Support \u{XXXXXX} character escape sequences. Tor Andersson 2020-06-22 16:45:48 +02:00
  • 7e27931468 Increase default stack sizes. Tor Andersson 2024-01-17 16:02:01 +01:00
  • e0885b354c regex: Dynamically allocate character class buffer. Tor Andersson 2024-01-17 16:04:05 +01:00
  • a76d157bda Release 1.3.4. 1.3.4 Tor Andersson 2023-11-21 16:27:50 +01:00
  • 9f5bc0ff81 Finalize user data if object allocation fails. Tor Andersson 2023-08-10 17:13:37 +02:00
  • 9bd3edcbcd Fix bug when cleaning up after allocation error. Tor Andersson 2023-08-10 17:04:40 +02:00
  • ddd770933b Handle sign when converting integer strings to numbers. Tor Andersson 2023-05-08 12:36:05 +02:00
  • db212180bf Allow disabling readline support in Makefile. Tor Andersson 2023-04-04 14:57:27 +02:00
  • 57e3f01d5f Add install-static and install-shared targets. 1.3.3 Tor Andersson 2023-01-09 21:46:36 +01:00
  • f190f88ee2 Simplify Makefile. Tor Andersson 2022-12-02 14:56:28 +01:00
  • bb6a85a31c Issue #171: Compile sparse array initializers correctly. Tor Andersson 2023-01-05 15:32:17 +01:00
  • 32f3e71169 Issue #171: Fix Object.keys implementation for flat arrays and strings. Tor Andersson 2022-12-21 18:57:24 +01:00
  • 2e2738b293 Change js_Value to union to avoid some compiler optimization warnings. Tor Andersson 2022-12-02 14:13:29 +01:00
  • dd149b98bd Split debug printing of bytecode etc into "pp" tool. Tor Andersson 2022-12-02 14:54:27 +01:00
  • d283465777 Regenerate Unicode data from latest UnicodeData.txt Tor Andersson 2022-12-02 12:16:45 +01:00
  • 278590fcb4 Merge the small private header files into jsi.h Tor Andersson 2022-12-01 10:18:37 +01:00
  • 71ffe07495 Fix longjmp warnings. Tor Andersson 2022-12-01 10:18:16 +01:00
  • 88b31f342d Allow holes at the end of a simple array. Tor Andersson 2022-11-02 14:29:15 +01:00
  • 7d9888b739 Return "undefined" from C functions if no return value is pushed. Tor Andersson 2023-01-04 17:25:44 +01:00
  • bd037ab7aa Bug 706081: Fix off by one in size calculation. Tor Andersson 2022-11-16 21:12:12 +01:00
  • 09b3fcb1e7 Bug 706075: Fix errors in property deletion. Tor Andersson 2022-11-14 17:43:20 +01:00
  • f882c6c5fe Rename private functions to avoid problems with MSYS stdio.h. Tor Andersson 2022-11-09 16:01:32 +01:00
  • 66d98a5f8e Fix Array.prototype.slice when deleteCount is missing. Tor Andersson 2022-11-02 13:35:16 +01:00
  • c067e1299c Avoid using the string interning table. Tor Andersson 2022-11-01 13:34:29 +01:00
  • 0e611cdc0c 1.3.2 patch release for UAF bug fix. 1.3.2 Tor Andersson 2022-11-07 13:00:47 +01:00
  • edb50ad66f Bug 706057: Fix use-after-free in getOwnPropertyDescriptor. Tor Andersson 2022-11-07 12:52:05 +01:00
  • bf4ac94207 Set length of output array Array.prototype.map. Tor Andersson 2022-10-26 20:42:29 +02:00
  • 69e2767d0a Make a patch release for important iterator bug fix. 1.3.1 Tor Andersson 2022-10-20 18:19:41 +02:00
  • 8b5ba20957 Issue #166: Use special iterator for string and array indices. Tor Andersson 2022-10-20 12:59:49 +02:00
  • d592c785c0 Enable choice of library version for shell Ismael Luceno 2022-03-18 18:51:28 +01:00
  • 1138515255 Use $(@D) instead of $(dir $@) Ismael Luceno 2022-03-18 18:04:53 +01:00
  • 4d3165baf5 Bug 705905: Compute VERSION using Make. Ismael Luceno 2022-03-18 17:58:32 +01:00
  • ebf235bfea Bump version number. 1.3.0 Tor Andersson 2022-10-11 18:18:06 +02:00
  • bbb2c511e5 Avoid freeing buffer twice in case of error. Sebastian Rasmussen 2022-10-11 18:01:23 +02:00
  • 3f71a1c946 Fast path for "simple" arrays. Tor Andersson 2022-08-31 14:10:14 +02:00
  • ac03b95b18 Bug 705775: Fix double fclose in pretty-printing tool. Tor Andersson 2022-08-23 11:16:42 +02:00
  • 1cbf19e7a9 Makefile: fix parallel builds Wessel Dankers 2022-03-31 14:21:07 +02:00
  • 3451b6ca96 Guard state initialization with try to avoid panic in initialization. Tor Andersson 2022-06-09 14:58:02 +02:00
  • 88f6d86b6c Add js_isbooleanobject and js_isdateobject functions. Tor Andersson 2022-05-25 16:33:53 +02:00
  • f5b3c703e1 Issue #161: Cope with empty programs in mujs-pp. Tor Andersson 2022-05-17 15:57:00 +02:00
  • 910acc807c Issue #161: Don't fclose a FILE that is NULL. Tor Andersson 2022-05-17 15:53:30 +02:00
  • 160ae29578 Issue #162: Check stack overflow during regexp compilation. Tor Andersson 2022-05-17 15:31:50 +02:00
  • db110ea88e Bug 705052: Don't use private STACK/TOP macros in jsstate.c Tor Andersson 2022-03-16 11:34:18 +01:00
  • 76e400fb67 Add "console" object to mujs shell. Tor Andersson 2022-03-10 17:42:25 +01:00
  • 434ae67268 Issue #156: Fix check for duplicate formal parameters when strict. Tor Andersson 2022-03-10 17:42:00 +01:00
  • 4586e81832 Some minor optimizations to Ap_join. Tor Andersson 2022-02-23 14:11:44 +01:00
  • a2b628c9cb array join: avoid strcat, speedup from O(N^2) to O(N) Avi Halachmi (:avih) 2022-02-16 11:35:09 +02:00
  • dd0a0972b4 Add JS_VERSION_MAJOR/MINOR/PATCH defines to mujs.h 1.2.0 Tor Andersson 2021-10-21 14:04:52 +02:00
  • 1780d0ea73 Bug 704756: Don't trust function.length property! Tor Andersson 2021-12-08 12:54:07 +01:00
  • 70bd7ea61c Minor cleanups. Tor Andersson 2021-12-06 16:23:31 +01:00
  • 78e56b7854 Bug 704748: Save original object in stack slot for returning after constructor. Tor Andersson 2021-12-06 15:54:04 +01:00
  • eed8a67a49 Bug 704750 and 704751: Save transient js_toobject in stack slot. Tor Andersson 2021-12-06 15:40:50 +01:00
  • 70a299c76b Build shared libs as dylib on macOS 李通洲 2021-12-06 13:41:04 +08:00
  • df8559e7bd Bug 704749: Clear jump list after patching jump addresses. Tor Andersson 2021-12-06 11:47:31 +01:00
  • 90a63426ee Issue #152: Work around GCC compiler bug introduced in 2015. Tor Andersson 2021-11-04 12:21:12 +01:00
  • e7ba87678f Silence harmless GCC warnings. Tor Andersson 2021-11-04 12:27:25 +01:00
  • 3bd234c685 Math.random: Use Lehmer LCG instead of borrowing the hack from musl. Tor Andersson 2021-10-24 13:12:07 +02:00
  • fe8cac61e3 Add user data to C functions with extended constructor. Tor Andersson 2021-10-19 15:47:16 +02:00
  • daa2241087 Increase default string limit to 256M. Tor Andersson 2021-09-20 14:08:39 +02:00
  • b06a5e9b02 Bug 704238: Limit max string lengths. Tor Andersson 2021-09-07 18:02:28 +02:00
  • 453d28fcc0 Don't use realloc(p, 0) to mean free() in default regex allocator. Tor Andersson 2021-08-01 13:58:34 +02:00
  • 9dd965b679 Add special error handling for safe 'protected' functions. Tor Andersson 2021-07-23 16:23:08 +02:00
  • 822061539a Fix leaks if js_try runs out of exception stack space. Tor Andersson 2021-07-23 12:43:15 +02:00
  • a9d88e54af Handle try stack errors like stack overflow errors. Tor Andersson 2021-07-23 11:42:35 +02:00
  • 2a1804ea26 Generate new tables for isalpha/toupper/tolower from UnicodeDate.txt Tor Andersson 2021-07-20 15:01:53 +02:00
  • 1b8aae1d3c Restore missing copyright headers! Tor Andersson 2021-07-20 11:24:40 +02:00
  • d4a599edea Issue 150: Fix regexp.exec bugs. Tor Andersson 2021-07-08 18:13:35 +02:00
  • c3ce563aa9 Debug print whether a function is strict. Tor Andersson 2021-07-08 18:13:12 +02:00
  • c3715ce3db Fix error in Array.prototype.toString(). 1.1.3 Tor Andersson 2021-06-08 13:28:41 +02:00
  • 6625d1ea02 Disable const warnings in Visual Studio. Robin Watts 2021-06-03 12:45:04 +01:00
  • 7ef066a3bb Fix use-after-free in regexp source property access. 1.1.2 Tor Andersson 2021-04-23 11:11:28 +02:00
  • dbb86fcd8b Call "join" property instead of hardcoding Ap_join in Ap_toString. Tor Andersson 2021-04-23 11:12:36 +02:00
  • e38bff1f68 ... and leave a bit of margin. Tor Andersson 2021-04-21 15:07:16 +02:00
  • 833b6f1672 Issue #148: Check for overflow when reading floating point exponent. Tor Andersson 2021-04-21 12:25:48 +02:00
  • 292415b625 test262: improve quoting, handle spaces at files/arguments Avi Halachmi (:avih) 2021-04-19 21:54:37 +03:00
  • d5f6b3b66e test262: remove incorrect shift Avi Halachmi (:avih) 2021-04-19 21:38:36 +03:00
  • 857ffd39b0 tools: add test262 and harness Avi Halachmi (:avih) 2018-09-02 23:41:06 +03:00
  • e00c9ba79c Don't call realloc with size=0 to free data. Tor Andersson 2021-04-17 21:42:49 +02:00
  • 6d1404397f Prevent negative table indexing in js_strtol 1.1.1 Connor Nelson 2021-04-12 19:22:04 -07:00
  • f93d24539b Fix js_strtol Connor Nelson 2021-03-26 18:40:40 -07:00
  • 72e95a48e3 Add user.make for persistent custom settings. Sebastian Rasmussen 2021-03-26 16:40:45 +01:00
  • d1160c7933 Improve gitignore. Sebastian Rasmussen 2021-03-26 16:40:09 +01:00
  • 3d29cd2f2f Issue #135: Expose type of value as an enum with js_type(). Tor Andersson 2021-03-26 15:47:23 +01:00
  • 33ffe6efeb Inline doubles and interned string pointers in the byte code. Tor Andersson 2021-03-26 12:58:34 +01:00
  • 06a6f9fb11 Issue #120: Optimize array construction bytecode. Tor Andersson 2021-03-26 12:05:35 +01:00