Commit Graph

  • 2c0c6c94ca Use getopt command line argument processing. Tor Andersson 2018-08-29 12:56:23 +02:00
  • 643d428894 Default mujs shell to non-strict mode. Tor Andersson 2018-08-29 12:56:23 +02:00
  • 3430d9a06d Return null instead of throwing an error when readline hits EOF. Tor Andersson 2018-08-27 12:57:12 +02:00
  • c86267d8b2 Fix issue 66: Stack overflow when compiling long regexp sequences. 1.0.4 Sebastian Rasmussen 2018-07-28 01:02:16 +08:00
  • 5c1300b015 Fix 699559: Off-by-one comparison in regexp parser. Tor Andersson 2018-07-26 23:44:15 +02:00
  • b4297c0dec Fix 699557: Pause garbage collector during Ap_sort. Tor Andersson 2018-07-25 11:58:28 +02:00
  • 40b73014d9 Fix 699549: Integer overflow in Array.prototype.sort(). Tor Andersson 2018-07-23 11:30:22 +02:00
  • dbc0931a5c Fix Date.prototype.setHours Konstantin Baladurin 2018-07-09 01:33:16 +03:00
  • bd2470847c Fix logic in Object.isFrozen to comply with spec. Tor Andersson 2018-07-16 13:28:04 +02:00
  • 49271d3cf2 Add js_iserror function. Tor Andersson 2018-07-03 12:00:51 +02:00
  • 222772f6bb Remove -ffunction-sections and -fdata-sections compile flags. Tor Andersson 2018-06-15 15:22:54 +02:00
  • ceac1b57d9 Allow enabling or disabling readline support by setting HAVE_READLINE. Tor Andersson 2018-06-15 15:03:08 +02:00
  • 2be672cd30 Fix makefile to remove warning from 'ar' invocation. Tor Andersson 2018-06-08 13:52:12 +02:00
  • 3f6b06a358 Avoid type punning with unions. Tor Andersson 2018-06-08 13:51:10 +02:00
  • 34cb61711f Fix 699383: Sorting arrays with zero or negative length. Tor Andersson 2018-05-29 14:29:16 +02:00
  • cbdf814ee2 Handle undefined and unset array slots separately in Array.prototype.sort. Tor Andersson 2018-05-15 13:41:26 +02:00
  • caabe08cb1 Use qsort to sort arrays. Tor Andersson 2018-05-15 11:48:11 +02:00
  • b0e3f5e80d Add readline support to mujs shell. Tor Andersson 2018-05-08 12:52:35 +02:00
  • 22430de3a9 Fix creation of empty regular expressions. Tor Andersson 2018-05-03 10:44:18 +02:00
  • 833f82ca95 Fix issue #65: Uninitialized name in Function.prototype function. Tor Andersson 2018-05-03 10:38:55 +02:00
  • b46ee8d829 Add more js_tryxxx conversion functions. Tor Andersson 2018-04-27 15:07:38 +02:00
  • 780b14b5b7 Fix bug in Ap_sort where tostring values were put back into the array. Tor Andersson 2018-04-27 11:11:50 +02:00
  • 57b698f0b2 Return null if String.prototype.match with a global regex finds no matches. Tor Andersson 2018-04-26 13:30:13 +02:00
  • 9d72b07e0b Don't forget to zero-terminate string buffer in Fp_toString. Tor Andersson 2018-04-24 15:46:03 +02:00
  • d04cbf3cc7 Add pretty-printing command line tool. Tor Andersson 2018-04-23 11:46:18 +02:00
  • 25821e6d74 Fix 698920: Guard jsdtoa from integer overflow wreaking havoc. 1.0.3 Tor Andersson 2018-01-24 16:55:18 +01:00
  • 4d45a96e57 Guard binary expressions from too much recursion. Tor Andersson 2018-01-18 14:16:28 +01:00
  • 8df3dcd8c1 Add XCFLAGS to the CFLAGS in the Makefile. Tor Andersson 2018-01-24 13:46:36 +01:00
  • e25c83d6b5 Fix issue #62: Handle 'this' binding consistently in REPL. Tor Andersson 2018-01-23 16:19:29 +01:00
  • 66cf4ccd82 Fix issue #61: Silence misleading indentation warning. Tor Andersson 2018-01-22 13:36:30 +01:00
  • 849fb89be7 Add recursion overflow check when parsing unary expressions. Tor Andersson 2018-01-15 13:08:31 +01:00
  • 228719d087 Remove mention of broken web site. Tor Andersson 2018-01-05 14:18:57 +01:00
  • 2cb57c6e71 Fix issue #56: MacOS X not detected as a Unix for gettimeofday(). 1.0.2 Tor Andersson 2017-12-11 14:15:01 +01:00
  • 505751a54e Fix issue #55: Stack overflow bug in Array.prototype.sort(). Tor Andersson 2017-12-11 13:22:23 +01:00
  • 41625ec2d0 Fix logo size in docs. Tor Andersson 2017-11-15 15:24:19 +01:00
  • d63cf4a906 Throw a TypeError when converting an object without toString and valueOf. Tor Andersson 2017-11-15 15:10:33 +01:00
  • ac9de3c67b Fix memory leak in main. Tor Andersson 2017-09-26 14:37:56 +02:00
  • 5d1904912c Extract mujs version from directory name for releases. Sebastian Rasmussen 2017-08-12 15:14:07 +08:00
  • 2f3d5550a4 Use automatic length in "digits" array in Np_toString. Tor Andersson 2017-09-26 12:50:18 +02:00
  • 919238c356 Update docs. Tor Andersson 2017-09-19 13:39:54 +02:00
  • 8c27b1260d Fix leak in Function.prototype.toString. Tor Andersson 2017-09-07 14:22:43 +02:00
  • 991f5e738e Add 'make watch' target. Tor Andersson 2017-09-05 15:33:12 +02:00
  • ffd25b0fe6 Add download link. Tor Andersson 2017-09-04 17:35:01 +02:00
  • 5b0111dabf Add logo. Tor Andersson 2014-03-24 17:18:51 +01:00
  • 26af0ff339 Add official web site link to README. Tor Andersson 2017-08-21 14:39:18 +02:00
  • 557968a22d Reduce minimum stack use in regexec by using recursive implementation. Tor Andersson 2017-08-14 14:37:14 +02:00
  • 81388eb40d Add stdint.h MSVC workaround for jsnumber.c also. Tor Andersson 2017-08-09 16:10:33 +02:00
  • 9f0f88b8ca Use <stdint.h> for VS2012 David Capello 2017-08-09 10:43:07 -03:00
  • bd75628fe2 js_compile: Don't shadow formal arguments with function name. Avi Halachmi (:avih) 2017-08-08 12:15:13 +03:00
  • fea0707d20 Support 'radix' argument for Number.prototype.toString. Tor Andersson 2017-06-29 14:10:11 +02:00
  • 4792d16f17 Fix 698191: don't call pexp with NULL expression in jsdump.c 1.0.1 Tor Andersson 2017-07-05 13:37:40 +02:00
  • ae54eaa652 Move js_Buffer to jsi.h and fix some potential leaks. Tor Andersson 2017-07-05 12:40:56 +02:00
  • a7aae8f84b Clamp to INT_MIN/INT_MAX explicitly in jsV_numbertointeger. Tor Andersson 2017-07-05 13:23:44 +02:00
  • e8dad5a39e Make js_freestate() not segfault on NULL argument. Sebastian Rasmussen 2017-07-05 02:45:15 +08:00
  • 0a3fc12601 Fix typo in js_strtod that affects parsing exponents. Tor Andersson 2017-06-21 13:47:09 +02:00
  • 4c53c271f1 Only strip linked binaries in release mode. Tor Andersson 2017-06-21 13:46:29 +02:00
  • c8934909e0 Silence a few compiler warnings for harmless, impossible cases. Tor Andersson 2017-06-19 11:50:13 +02:00
  • f0ed0d0ba3 Use separate directories for debug and release builds. 1.0.0 Tor Andersson 2017-06-15 16:46:21 +02:00
  • a6e8443128 Add separate install-static and install-shared targets. Tor Andersson 2017-06-15 16:22:58 +02:00
  • ca22ed4882 Add pkgconfig file and shared library target. Tor Andersson 2017-06-14 12:37:09 +02:00
  • 03c889d581 Update docs. Tor Andersson 2017-06-14 12:37:20 +02:00
  • 2dced7cf69 Update docs website. Tor Andersson 2017-06-05 10:20:16 -07:00
  • be0685e89e Optimize js_isarrayindex. Tor Andersson 2017-05-23 12:13:09 +02:00
  • ebbc191fe1 Add fast integer special case in jsV_numbertostring. Tor Andersson 2017-05-23 10:54:17 +02:00
  • 3f5f3034d2 Fix grisu2 code to build on MSVC. Tor Andersson 2017-05-23 13:13:24 +02:00
  • 1399bbe244 Free script buffer read from standard input. Sebastian Rasmussen 2017-05-22 22:17:57 +08:00
  • c5296bf469 Add sanitize build variant. Sebastian Rasmussen 2017-05-21 16:08:50 +08:00
  • bfebb7aa5c Use grisu2 algorithm for locale independent dtoa. Use BSD strtod. Tor Andersson 2017-05-22 14:48:23 +02:00
  • 5f83cc9842 Add recursion overflow checks in parser. Tor Andersson 2017-05-16 13:05:50 +02:00
  • 0365576bab Emit line numbers for each entry in compound literals. Tor Andersson 2017-05-16 13:16:16 +02:00
  • 6a85c78a5d Fix error message when missing stack traces in main.c Tor Andersson 2017-05-16 13:08:46 +02:00
  • fb32b5c893 Add a js_setreport callback function to report warnings. Tor Andersson 2017-05-16 11:55:49 +02:00
  • 50281c9cee Update docs. Tor Andersson 2017-05-12 12:01:09 +02:00
  • d2c8e710b9 Fix public header so it can be used with C++. Tor Andersson 2017-05-12 11:40:49 +02:00
  • 134134e899 Don't do unprotected js_tostring calls in js_dostring/file. Tor Andersson 2017-05-09 14:23:57 +02:00
  • 2b4d05a575 Revert 'Maintain order of property enumeration by keeping a linked list.' Tor Andersson 2017-04-20 23:06:03 +02:00
  • f18f2c0c99 Don't force 'this' to be the global object in js_dostring/dofile. Tor Andersson 2017-05-09 13:17:11 +02:00
  • 44d4109a1c Use the line number of the lookahead token when building the syntax tree. Tor Andersson 2017-05-09 13:16:23 +02:00
  • 617261bff9 Update docs with userdata callbacks. Tor Andersson 2017-04-26 11:52:58 +02:00
  • 2e7550e718 Fix bounds checks for string object array accesses. Tor Andersson 2017-04-20 23:19:35 +02:00
  • 32bf345fd0 Fix stack management error in JSON.stringify. Tor Andersson 2017-04-21 11:03:29 +02:00
  • 24b1997368 Add setjmp.h to public header (since js_try is a macro over setjmp). Tor Andersson 2017-04-20 15:12:28 +02:00
  • 50ee2a2e4d Update docs to mention we don't support zero valued chars in strings. Tor Andersson 2017-04-20 15:12:12 +02:00
  • 2296f47e4c Make Error.prototype.toString conform to the spec. Tor Andersson 2017-04-20 14:54:49 +02:00
  • c1bd06728a Don't truncate error messages. Tor Andersson 2017-04-19 23:49:01 +02:00
  • 9321f8fec6 Check for cyclic structures in JSON.stringify. Tor Andersson 2017-04-19 23:49:27 +02:00
  • e676a871f0 JSON.stringify replacer callback. Tor Andersson 2017-04-19 16:14:26 +02:00
  • 8e7d57959c JSON.parse reviver callback. Tor Andersson 2017-04-19 13:22:36 +02:00
  • 58b4420094 Add function-level linking. Tor Andersson 2017-04-17 23:25:45 +02:00
  • 1062e70c86 Track strictness during runtime based on 'use strict' pragma. Tor Andersson 2017-04-17 15:01:53 +02:00
  • 8a26e20943 Compile functions with per-function strictness. Tor Andersson 2017-04-17 15:00:52 +02:00
  • 75cab70afd Handle undefined this at the OP_THIS level. Tor Andersson 2017-04-17 13:03:06 +02:00
  • 9e9f168cbb Add strictness check when setting a property that only has a getter. Tor Andersson 2017-04-17 14:09:24 +02:00
  • aa18ef32a6 Update documentation to note our use of CESU-8 encoded strings. Tor Andersson 2017-04-04 15:57:38 +02:00
  • 45208d7331 Be stricter when parsing JSON strings. Tor Andersson 2017-04-03 12:31:11 +02:00
  • 05aeef461f Use regular number to string conversion in JSON.stringify. Tor Andersson 2017-04-03 12:13:45 +02:00
  • dbeda99b66 Fix JSON number parsing. Tor Andersson 2017-04-03 12:09:14 +02:00
  • 581412fba5 Optimize regexp interpreter loop. Tor Andersson 2017-03-30 13:00:35 +02:00
  • 872cef584d Bug 697700: Fix typo and add more range checks in parseDateTime. Tor Andersson 2017-03-29 15:55:00 +02:00
  • 14b9aab193 Change to ISC license. Tor Andersson 2017-03-28 23:02:16 +02:00