[njs] Fixed parsing of hex, oct and binary literals with no digits.

2024-01-29 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/a2959e490279 branches: changeset: 2275:a2959e490279 user: Vadim Zhestikov date: Mon Jan 29 08:57:49 2024 -0800 description: Fixed parsing of hex, oct and binary literals with no digits. diffstat: src/njs_lexer.c | 6 +++---

[njs] Fixed parsing of for-statement.

2024-01-29 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/08d7391230be branches: changeset: 2274:08d7391230be user: Vadim Zhestikov date: Mon Jan 29 08:57:48 2024 -0800 description: Fixed parsing of for-statement. diffstat: src/njs_parser.c | 37 +

[njs] Removed unused field from njs_vmcode_t.

2024-01-10 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/a5f279148c9f branches: changeset: 2265:a5f279148c9f user: Vadim Zhestikov date: Wed Jan 10 16:26:35 2024 -0800 description: Removed unused field from njs_vmcode_t. diffstat: src/njs_disassembler.c |8 +- src/njs_generator.c| 161

[njs] Modules: fixed clear() method of a shared dictionary without timeout.

2023-12-19 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/4a15613f4e8b branches: changeset: 2250:4a15613f4e8b user: Vadim Zhestikov date: Tue Dec 19 12:37:05 2023 -0800 description: Modules: fixed clear() method of a shared dictionary without timeout. This fixes #690 issue on Github. diffstat:

[njs] Removed not required argument for JSON functions.

2023-12-11 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/34df3f0796cf branches: changeset: 2247:34df3f0796cf user: Vadim Zhestikov date: Mon Dec 11 19:10:38 2023 -0800 description: Removed not required argument for JSON functions. diffstat: src/njs_json.c | 59

[njs] Removed not used arg from njs_get_own_ordered_keys().

2023-12-11 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/59bd78b060c9 branches: changeset: 2246:59bd78b060c9 user: Vadim Zhestikov date: Mon Dec 11 19:10:36 2023 -0800 description: Removed not used arg from njs_get_own_ordered_keys(). diffstat: src/njs_object.c | 9 - 1 files changed, 4

[njs] Removed remnants of GC code.

2023-11-29 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/439ea33e531c branches: changeset: 2244:439ea33e531c user: Vadim Zhestikov date: Wed Nov 29 20:46:36 2023 -0800 description: Removed remnants of GC code. The code never worked and comments are in a broken state. diffstat: src/njs_array.c|

[njs] Fixed memory over-read in njs_utf8_prev() and njs_utf8_next().

2023-11-29 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/a3364db5fdef branches: changeset: 2243:a3364db5fdef user: Vadim Zhestikov date: Wed Nov 29 20:46:32 2023 -0800 description: Fixed memory over-read in njs_utf8_prev() and njs_utf8_next(). Previously, njs_utf8_next() might over-read up to 1 byte

[njs] Fixed memory overlapping.

2023-11-21 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/8e024f36e38e branches: changeset: 2235:8e024f36e38e user: Vadim Zhestikov date: Tue Nov 21 06:49:30 2023 -0800 description: Fixed memory overlapping. diffstat: src/njs_iterator.c | 22 ++ src/test/njs_unit_test.c |

[njs] Added flat hash overflow check.

2023-09-08 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/78c1ef3eeaa9 branches: changeset: 2195:78c1ef3eeaa9 user: Vadim Zhestikov date: Fri Sep 08 16:05:24 2023 -0700 description: Added flat hash overflow check. diffstat: src/njs_flathsh.c | 26 -- 1 files changed, 16

[njs] Fixed typo introduced in c7d2a7846b0b.

2023-08-31 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/58d40fc80c52 branches: changeset: 2189:58d40fc80c52 user: Vadim Zhestikov date: Thu Aug 31 08:24:17 2023 -0700 description: Fixed typo introduced in c7d2a7846b0b. Found by Coverity (CID 1542439). diffstat: src/njs_object.c | 2 +- 1 files

[njs] Introduced flat hash.

2023-08-30 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/c7d2a7846b0b branches: changeset: 2186:c7d2a7846b0b user: Vadim Zhestikov date: Wed Aug 30 12:06:12 2023 -0700 description: Introduced flat hash. Object property enumeration order is corrected. This fixes #189 issue on Github. diffstat:

[njs] Fixed building by GCC with -O3.

2023-08-23 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/c0f581b26e84 branches: changeset: 2185:c0f581b26e84 user: Vadim Zhestikov date: Wed Aug 23 10:09:22 2023 -0700 description: Fixed building by GCC with -O3. diffstat: src/njs_array.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)

[njs] Improved interactive shell.

2023-06-30 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/0e97da4147da branches: changeset: 2173:0e97da4147da user: Vadim Zhestikov date: Fri Jun 30 19:49:46 2023 -0700 description: Improved interactive shell. diffstat: external/njs_shell.c | 17 - 1 files changed, 12 insertions(+),

[njs] Fixed parsing of invalid for statement.

2023-06-30 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/2c532e7c29ac branches: changeset: 2172:2c532e7c29ac user: Vadim Zhestikov date: Fri Jun 30 19:49:45 2023 -0700 description: Fixed parsing of invalid for statement. diffstat: src/njs_parser.c | 16 ++--

[njs] Added constructor name for async function.

2023-06-30 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/e85aaeaa7e55 branches: changeset: 2170:e85aaeaa7e55 user: Vadim Zhestikov date: Fri Jun 30 06:38:36 2023 -0700 description: Added constructor name for async function. diffstat: src/njs_async.c | 2 ++ 1 files changed, 2 insertions(+), 0

[njs] Fixed parsing of invalid for-var statement.

2023-06-01 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/d73bfec720b9 branches: changeset: 2145:d73bfec720b9 user: Vadim Zhestikov date: Thu Jun 01 09:39:27 2023 -0700 description: Fixed parsing of invalid for-var statement. diffstat: src/njs_parser.c | 10 --

[njs] Fixed parsing of invalid for-in statement.

2023-06-01 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/aa05db6d896f branches: changeset: 2144:aa05db6d896f user: Vadim Zhestikov date: Thu Jun 01 09:39:25 2023 -0700 description: Fixed parsing of invalid for-in statement. The issue was introduced in: b9d18d4dd34e diffstat: src/njs_parser.c

[njs] Fixed parsing of for-in loops.

2023-05-26 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/b9d18d4dd34e branches: changeset: 2138:b9d18d4dd34e user: Vadim Zhestikov date: Fri May 26 19:43:24 2023 -0700 description: Fixed parsing of for-in loops. This fixes parsing for input like: for (a(b * in d) ; The issue was introduced in

[njs] Fixed invalid NULL pointer check.

2023-03-22 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/8e6a2cb0c23d branches: changeset: 2075:8e6a2cb0c23d user: Vadim Zhestikov date: Wed Mar 22 09:36:58 2023 -0700 description: Fixed invalid NULL pointer check. This fixes Coverity issues CID 1524495 and CID 1524494. diffstat: src/njs_parser.c

[njs] Added support for export {name as default} statement.

2023-03-20 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/fbd36220ea17 branches: changeset: 2073:fbd36220ea17 user: Vadim Zhestikov date: Mon Mar 20 21:09:58 2023 -0700 description: Added support for export {name as default} statement. This fixes #624 issue on Github. diffstat: src/njs_parser.c

[njs] Parser: fixed the detection of await in arguments.

2023-02-27 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/82e673ec5f19 branches: changeset: 2051:82e673ec5f19 user: Vadim Zhestikov date: Mon Feb 27 18:39:44 2023 -0800 description: Parser: fixed the detection of await in arguments. This fixes #619 issue on Github. diffstat: src/njs_parser.c

[njs] Added String.prototype.replaceAll().

2023-02-03 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/69547623da14 branches: changeset: 2038:69547623da14 user: Vadim Zhestikov date: Fri Feb 03 06:41:01 2023 -0800 description: Added String.prototype.replaceAll(). diffstat: src/njs_regexp.c |2 +- src/njs_regexp.h |2 +

[njs] Fixed RegExp.prototype[@@replace]().

2023-02-02 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/286675dcfbc5 branches: changeset: 2037:286675dcfbc5 user: Vadim Zhestikov date: Thu Feb 02 10:01:26 2023 -0800 description: Fixed RegExp.prototype[@@replace](). Previously, when RegExpExec() returned a fast-array with gaps

[njs] Improved performance of conditional jumps.

2022-12-06 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/ef1fd66c094e branches: changeset: 2008:ef1fd66c094e user: Vadim Zhestikov date: Tue Dec 06 18:47:53 2022 -0800 description: Improved performance of conditional jumps. diffstat: src/njs_vmcode.c | 4 ++-- 1 files changed, 2 insertions(+), 2

[njs] Fixed for(expr1; conditional syntax error handling.

2022-11-18 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/c51adee54dfe branches: changeset: 2007:c51adee54dfe user: Vadim Zhestikov date: Fri Nov 18 14:10:25 2022 -0800 description: Fixed for(expr1; conditional syntax error handling. diffstat: src/njs_parser.c | 4

[njs] Fixed for-in unwanted detection of arrow function.

2022-11-16 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/487780764501 branches: changeset: 2001:487780764501 user: Vadim Zhestikov date: Wed Nov 16 16:09:47 2022 -0800 description: Fixed for-in unwanted detection of arrow function. diffstat: src/njs_parser.c | 18 ++

[njs] Fixed for-in rhs expression parsing error handling.

2022-11-16 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/0d0b16ecf796 branches: changeset: 2000:0d0b16ecf796 user: Vadim Zhestikov date: Wed Nov 16 09:15:39 2022 -0800 description: Fixed for-in rhs expression parsing error handling. This fixes

[njs] Masks definition corrected and made regularized.

2022-11-14 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/993f19791a71 branches: changeset: 1998:993f19791a71 user: Vadim Zhestikov date: Mon Nov 14 17:31:03 2022 -0800 description: Masks definition corrected and made regularized. diffstat: src/njs_scope.h | 26 +- 1 files

[njs] Fixed for-in loop with left and right hand side expressions.

2022-11-14 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/283ae119d121 branches: changeset: 1997:283ae119d121 user: Vadim Zhestikov date: Mon Nov 14 09:18:37 2022 -0800 description: Fixed for-in loop with left and right hand side expressions. This fixes #351 issue on Github. diffstat:

[njs] Fixed String.prototype.replace(re) if re.exec() returns non-flat array.

2022-11-07 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/b80c24512157 branches: changeset: 1988:b80c24512157 user: Vadim Zhestikov date: Mon Nov 07 14:08:28 2022 -0800 description: Fixed String.prototype.replace(re) if re.exec() returns non-flat array. This fixes #587 issue on Github. diffstat:

[njs] Fixed static analyzer issues.

2022-10-26 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/4f66a66ef300 branches: changeset: 1987:4f66a66ef300 user: Vadim Zhestikov date: Wed Oct 26 16:33:15 2022 -0700 description: Fixed static analyzer issues. diffstat: src/njs_builtin.c | 5 + src/njs_object.c | 4 ++--

[njs] Computed goto support added to vmcode.

2022-10-25 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/86784a68e8c8 branches: changeset: 1984:86784a68e8c8 user: Vadim Zhestikov date: Tue Oct 25 06:43:10 2022 -0700 description: Computed goto support added to vmcode. diffstat: auto/clang |19 + auto/computed_goto |25 +

[njs] Fixed labeled empty statement.

2022-10-24 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/594821c68b83 branches: changeset: 1981:594821c68b83 user: Vadim Zhestikov date: Mon Oct 24 07:48:28 2022 -0700 description: Fixed labeled empty statement. This fixes #593 issue on Github. diffstat: src/njs_parser.c | 64

[njs] Fixed break label for if statement.

2022-10-20 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/dc6bc4de1185 branches: changeset: 1978:dc6bc4de1185 user: Vadim Zhestikov date: Thu Oct 20 16:40:35 2022 -0700 description: Fixed break label for if statement. This fixes #591 issue on Github. diffstat: src/njs_generator.c | 10

[njs] Fixed double declaration detection in modules.

2022-10-06 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/16442fa970ee branches: changeset: 1975:16442fa970ee user: Vadim Zhestikov date: Thu Oct 06 18:28:52 2022 -0700 description: Fixed double declaration detection in modules. diffstat: src/njs_variable.c | 15 +--

[njs] Modules: js_merge_conf is moved to shared library.

2022-09-27 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/43e35b05fd1b branches: changeset: 1965:43e35b05fd1b user: Vadim Zhestikov date: Tue Sep 27 10:56:54 2022 -0700 description: Modules: js_merge_conf is moved to shared library. diffstat: nginx/ngx_http_js_module.c | 88

[njs] Modules: common code is moved to shared library.

2022-09-27 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/b92fa931a0f2 branches: changeset: 1964:b92fa931a0f2 user: Vadim Zhestikov date: Tue Sep 27 09:32:56 2022 -0700 description: Modules: common code is moved to shared library. diffstat: nginx/ngx_http_js_module.c | 373

[njs] Modules: added js_preload_object directive.

2022-09-16 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/52b3e1f2a3e1 branches: changeset: 1957:52b3e1f2a3e1 user: Vadim Zhestikov date: Fri Sep 16 12:27:40 2022 -0700 description: Modules: added js_preload_object directive. diffstat: nginx/ngx_http_js_module.c | 100 +++-

[njs] Modules: common code for js_import is moved to shared library.

2022-09-13 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/05efe34376ab branches: changeset: 1952:05efe34376ab user: Vadim Zhestikov date: Tue Sep 13 21:13:17 2022 -0700 description: Modules: common code for js_import is moved to shared library. diffstat: nginx/ngx_http_js_module.c | 160

[njs] Fixed Object.defineProperty() with fast arrays.

2022-09-06 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/a2db32044812 branches: changeset: 1949:a2db32044812 user: Vadim Zhestikov date: Tue Sep 06 18:44:47 2022 -0700 description: Fixed Object.defineProperty() with fast arrays. Previously, Object.defineProperty() failed to properly set attributes

[njs] Fixed Object.freeze() with fast arrays.

2022-09-06 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/d40481363bdf branches: changeset: 1948:d40481363bdf user: Vadim Zhestikov date: Tue Sep 06 11:13:31 2022 -0700 description: Fixed Object.freeze() with fast arrays. Previously, Object.freeze() failed to freeze the 'length' property of a fast

[njs] Fixed assignment to global property by name only.

2022-07-21 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/4b8d8237f598 branches: changeset: 1916:4b8d8237f598 user: Vadim Zhestikov date: Thu Jul 21 18:33:20 2022 -0700 description: Fixed assignment to global property by name only. This closes #145 issue on Github. diffstat: src/njs_generator.c

[njs] Fixed AST debug with tokens added with async/await feature (0.7.0).

2022-07-15 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/0a2bd6c71db4 branches: changeset: 1911:0a2bd6c71db4 user: Vadim Zhestikov date: Fri Jul 15 15:44:27 2022 -0700 description: Fixed AST debug with tokens added with async/await feature (0.7.0). diffstat: src/njs_parser.c | 3 +++ 1 files

[njs] Fixed async function declaration in CLI.

2022-07-15 Thread Vadim Zhestikov via nginx-devel
details: https://hg.nginx.org/njs/rev/56a890599de2 branches: changeset: 1910:56a890599de2 user: Vadim Zhestikov date: Fri Jul 15 15:44:16 2022 -0700 description: Fixed async function declaration in CLI. This closes #559 issue on Github. diffstat: src/njs_generator.c | 3 ++- 1