[njs] Removed surplus condition from Base64 decoded length counting.

2021-10-26 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/264fb92817cd branches: changeset: 1730:264fb92817cd user: Valentin Bartenev date: Tue Oct 26 16:14:07 2021 +0300 description: Removed surplus condition from Base64 decoded length counting. diffstat: src/njs_string.c | 4 1 files changed

[njs] Unicode case tables updated to version 14.0.0 (May 2021).

2021-07-09 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/36dd0370b121 branches: changeset: 1673:36dd0370b121 user: Valentin Bartenev date: Fri Jul 09 12:03:11 2021 +0300 description: Unicode case tables updated to version 14.0.0 (May 2021). diffstat: src/njs_unicode_lower_case.h | 60

[njs] Ignoring pcre_study() error.

2020-11-20 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/e51da8c71f26 branches: changeset: 1569:e51da8c71f26 user: Valentin Bartenev date: Fri Nov 20 12:29:30 2020 +0300 description: Ignoring pcre_study() error. It provides optional optimization that shouldn't be fatal for regex compilation

[njs] Added support for numeric separators (ES12).

2020-08-17 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/4818a450f4e6 branches: changeset: 1495:4818a450f4e6 user: Valentin Bartenev date: Mon Aug 17 19:55:46 2020 +0300 description: Added support for numeric separators (ES12). diffstat: src/njs_json.c |2 +- src/njs_lexer.c

[njs] Unicode case tables updated to version 13.0.0 (March 2020).

2020-08-17 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/10a2c35d53e7 branches: changeset: 1494:10a2c35d53e7 user: Valentin Bartenev date: Mon Aug 17 14:44:29 2020 +0300 description: Unicode case tables updated to version 13.0.0 (March 2020). diffstat: src/njs_unicode_lower_case.h | 6 +++--- src

[njs] Introduced nullish coalescing operator.

2019-12-23 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/9c1ef5ab7a1f branches: changeset: 1284:9c1ef5ab7a1f user: Valentin Bartenev date: Thu Dec 12 18:50:27 2019 +0300 description: Introduced nullish coalescing operator. diffstat: src/njs_disassembler.c | 12 ++ src/njs_generator.c

[njs] Date.prototype.toUTCString() format was aligned to ES9.

2019-09-28 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/5c22e2f006fe branches: changeset: 1166:5c22e2f006fe user: Valentin Bartenev date: Fri Sep 27 22:21:55 2019 +0300 description: Date.prototype.toUTCString() format was aligned to ES9. This closes #224 issue on GitHub. diffstat: src/njs_date.c

[njs] Fixed undefined behaviour in left shift of negative numbers.

2019-07-28 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/6be62551e6d4 branches: changeset: 1081:6be62551e6d4 user: Valentin Bartenev date: Sun Jul 28 17:19:51 2019 +0300 description: Fixed undefined behaviour in left shift of negative numbers. Now it's implementation defined. diffstat: njs

[njs] Slight improvements to njs_vmcode_interpreter().

2019-07-28 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/07989e97b198 branches: changeset: 1080:07989e97b198 user: Valentin Bartenev date: Sun Jul 28 15:00:40 2019 +0300 description: Slight improvements to njs_vmcode_interpreter(). No functional changes. diffstat: njs/njs_vmcode.c | 26

[njs] Added String.prototype.trimStrart() and String.prototype.trimEnd().

2019-07-28 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/258b1e34ca0f branches: changeset: 1079:258b1e34ca0f user: Valentin Bartenev date: Sun Jul 28 13:19:03 2019 +0300 description: Added String.prototype.trimStrart() and String.prototype.trimEnd(). diffstat: njs/njs_string.c | 248

[njs] Updated the list of space separators in String.prototype.trim().

2019-07-28 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/ac39f4c902b5 branches: changeset: 1078:ac39f4c902b5 user: Valentin Bartenev date: Sun Jul 28 13:17:13 2019 +0300 description: Updated the list of space separators in String.prototype.trim(). According to the specification it must include all

[njs] Fixed String.fromCodePoint(), broken after 0b82f1c9268c.

2019-07-27 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/575c018f2206 branches: changeset: 1077:575c018f2206 user: Valentin Bartenev date: Sat Jul 27 21:12:32 2019 +0300 description: Fixed String.fromCodePoint(), broken after 0b82f1c9268c. As it turned out, fromCodePoint() has shared the same handler

[njs] Fixed String.toLowerCase() and String.toUpperCase().

2019-07-27 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/cba3bd29f263 branches: changeset: 1076:cba3bd29f263 user: Valentin Bartenev date: Sat Jul 27 17:03:02 2019 +0300 description: Fixed String.toLowerCase() and String.toUpperCase(). Previously these functions didn't took into account that the size

[njs] Fixed String.fromCharCode() for code points > 65535 and NaN.

2019-07-27 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/0b82f1c9268c branches: changeset: 1075:0b82f1c9268c user: Valentin Bartenev date: Sat Jul 27 16:12:26 2019 +0300 description: Fixed String.fromCharCode() for code points > 65535 and NaN. According to the specification the code units m

[njs] Unicode case tables updated to version 12.1 (May 2019).

2019-07-26 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/dace17533126 branches: changeset: 1072:dace17533126 user: Valentin Bartenev date: Sat Jul 27 03:51:48 2019 +0300 description: Unicode case tables updated to version 12.1 (May 2019). diffstat: njs/test/njs_unit_test.c |2 +- nxt

[njs] Style in nxt_unicode_upper_case.pl and nxt_unicode_upper_case.h.

2019-07-26 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/0af076f81e2b branches: changeset: 1071:0af076f81e2b user: Valentin Bartenev date: Sat Jul 27 03:51:48 2019 +0300 description: Style in nxt_unicode_upper_case.pl and nxt_unicode_upper_case.h. diffstat: nxt/nxt_unicode_upper_case.h | 4

[njs] Optimized nxt_dec_count() using bisection.

2019-07-25 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/89082cb0bc84 branches: changeset: 1069:89082cb0bc84 user: Valentin Bartenev date: Thu Jul 25 22:07:57 2019 +0300 description: Optimized nxt_dec_count() using bisection. Previously, the number of comparisons required to count decimal numbers

[njs] Fixed one byte overread in njs_string_to_c_string().

2019-07-25 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/644af379d226 branches: changeset: 1068:644af379d226 user: Valentin Bartenev date: Thu Jul 25 20:17:42 2019 +0300 description: Fixed one byte overread in njs_string_to_c_string(). Short strings are packed quite tight in njs_value_t, so there's

[njs] Optimized inlining of njs_values_strict_equal().

2019-07-11 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/ea18aa7693da branches: changeset: 1041:ea18aa7693da user: Valentin Bartenev date: Thu Jul 11 16:10:33 2019 +0300 description: Optimized inlining of njs_values_strict_equal(). This function is often called inside loops and basically it does only

[njs] Reduced nesting level of branches in njs_string_replace_regexp().

2019-07-02 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/4a0f6ff54f88 branches: changeset: 1024:4a0f6ff54f88 user: Valentin Bartenev date: Mon Jul 01 22:44:14 2019 +0300 description: Reduced nesting level of branches in njs_string_replace_regexp(). No functional changes. diffstat: njs/njs_string.c

[njs] Version bump.

2019-06-27 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/0119e834a202 branches: changeset: 1018:0119e834a202 user: Valentin Bartenev date: Thu Jun 27 18:54:21 2019 +0300 description: Version bump. diffstat: njs/njs.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (12 lines): diff

[njs] Removed unused nxt_lvlhsh_ctx_t structure.

2019-06-27 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/40f26bb516a6 branches: changeset: 1020:40f26bb516a6 user: Valentin Bartenev date: Thu Jun 27 18:55:34 2019 +0300 description: Removed unused nxt_lvlhsh_ctx_t structure. diffstat: nxt/nxt_lvlhsh.h | 10 -- 1 files changed, 0

[njs] Removed unused nalloc parameter from lvlhsh allocation functions.

2019-06-27 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/9db5e400480c branches: changeset: 1019:9db5e400480c user: Valentin Bartenev date: Thu Jun 27 18:55:34 2019 +0300 description: Removed unused nalloc parameter from lvlhsh allocation functions. diffstat: njs/njs_event.c | 1 - njs

[njs] Added "name" property for built-in methods.

2019-05-23 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/5906cf108796 branches: changeset: 983:5906cf108796 user: Valentin Bartenev date: Thu May 23 16:21:55 2019 +0300 description: Added "name" property for built-in methods. diffstat: njs/njs_object.c

[njs] Fixed overwriting "constructor" property of built-in prototypes.

2019-05-23 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/4296c5b56e30 branches: changeset: 982:4296c5b56e30 user: Valentin Bartenev date: Thu May 23 15:05:52 2019 +0300 description: Fixed overwriting "constructor" property of built-in prototypes. diffstat: njs/njs_object.c

[njs] Made writable most of built-in properties and methods.

2019-05-23 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/f7eedb8257eb branches: changeset: 980:f7eedb8257eb user: Valentin Bartenev date: Thu May 23 15:05:51 2019 +0300 description: Made writable most of built-in properties and methods. diffstat: njs/njs_array.c | 29

[njs] Fixed array length property handler.

2019-05-23 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/fd0918b6dd56 branches: changeset: 981:fd0918b6dd56 user: Valentin Bartenev date: Thu May 23 15:05:51 2019 +0300 description: Fixed array length property handler. Previously it might change the length of prototype arrays. diffstat: njs

[njs] Fixed setting of object properties.

2019-05-23 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/ff591ba3e780 branches: changeset: 979:ff591ba3e780 user: Valentin Bartenev date: Thu May 23 15:05:50 2019 +0300 description: Fixed setting of object properties. Now writability of prototype properties is properly taken into account. diffstat

[njs] Uncommented a successful test of Object.create([1,2]).length.

2019-05-21 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/260d9d4f29ee branches: changeset: 977:260d9d4f29ee user: Valentin Bartenev date: Tue May 21 21:15:21 2019 +0300 description: Uncommented a successful test of Object.create([1,2]).length. It's actually passing after f5bdddca3252. diffstat

[njs] Fixed arrays expansion.

2019-05-08 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/8fe38b9f8a94 branches: changeset: 960:8fe38b9f8a94 user: Valentin Bartenev date: Wed May 08 19:09:10 2019 +0300 description: Fixed arrays expansion. There were two problems with njs_array_expand(): 1. It checked that the requred size

[njs] Better name for append elements count in njs_array_expand().

2019-05-08 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/4ed09499a560 branches: changeset: 958:4ed09499a560 user: Valentin Bartenev date: Wed May 08 19:09:10 2019 +0300 description: Better name for append elements count in njs_array_expand(). No functional changes. diffstat: njs/njs_array.c | 4

[njs] Simplified check for array length limit in njs_array_expand().

2019-05-08 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/cb9cbb358a8b branches: changeset: 959:cb9cbb358a8b user: Valentin Bartenev date: Wed May 08 19:09:10 2019 +0300 description: Simplified check for array length limit in njs_array_expand(). No functional changes. diffstat: njs/njs_array.c | 2

[njs] Made all constructor properties configurable.

2019-05-07 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/ff76f83fc49a branches: changeset: 957:ff76f83fc49a user: Valentin Bartenev date: Tue May 07 20:41:07 2019 +0300 description: Made all constructor properties configurable. Note that actual "constructor" property is created

[njs] Made configurable "length", "name", and most of built-in methods.

2019-05-07 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/a84f514e864d branches: changeset: 953:a84f514e864d user: Valentin Bartenev date: Mon May 06 05:40:03 2019 +0300 description: Made configurable "length", "name", and most of built-in methods. diffstat: njs/njs_ar

[njs] Fixed return value on deleting non-existent property.

2019-05-06 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/96c78f35a809 branches: changeset: 952:96c78f35a809 user: Valentin Bartenev date: Mon May 06 21:24:31 2019 +0300 description: Fixed return value on deleting non-existent property. diffstat: njs/njs_vm.c | 9 + njs/test

[njs] Added own constructors to prototypes of built-in objects.

2019-05-06 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/f876e5d1be41 branches: changeset: 951:f876e5d1be41 user: Valentin Bartenev date: Mon May 06 20:26:58 2019 +0300 description: Added own constructors to prototypes of built-in objects. diffstat: njs/njs_array.c | 6 ++ njs

[njs] Added support for RegExp "groups" object (ES9).

2019-05-06 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/e9de8a5d423c branches: changeset: 950:e9de8a5d423c user: Valentin Bartenev date: Mon May 06 19:42:06 2019 +0300 description: Added support for RegExp "groups" object (ES9). diffstat: njs/njs_object_hash.h| 10 +++ njs/nj

[njs] Fixed own properties quering.

2019-05-06 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/d94c836632c7 branches: changeset: 949:d94c836632c7 user: Valentin Bartenev date: Mon May 06 11:33:23 2019 +0300 description: Fixed own properties quering. njs_property_query() and njs_object_property_query() were simplified. diffstat: njs

[njs] Fixed alignment of njs_object_prop_t in njs_method_private_copy().

2019-05-06 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/6ee0e7a44e79 branches: changeset: 948:6ee0e7a44e79 user: Valentin Bartenev date: Mon May 06 17:47:26 2019 +0300 description: Fixed alignment of njs_object_prop_t in njs_method_private_copy(). It must be aligned to njs_value_t. diffstat: njs

[njs] Uncommented a successful test of getOwnPropertyNames().

2019-05-06 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/274d33eeb57d branches: changeset: 946:274d33eeb57d user: Valentin Bartenev date: Mon May 06 00:27:22 2019 +0300 description: Uncommented a successful test of getOwnPropertyNames(). It's actully passing after 1213e0a2b485 and d7a0eb59a7e7

[njs] Added missing "static" to njs_object_property_query() declaration.

2019-05-06 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/f3b145f3ca34 branches: changeset: 947:f3b145f3ca34 user: Valentin Bartenev date: Mon May 06 05:07:51 2019 +0300 description: Added missing "static" to njs_object_property_query() declaration. diffstat: njs/njs_object.c | 2 +

[njs] Added the "name" property to the Function prototype object.

2019-05-04 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/0c42e997371c branches: changeset: 945:0c42e997371c user: Valentin Bartenev date: Sat May 04 17:12:35 2019 +0300 description: Added the "name" property to the Function prototype object. Its value according to the ES6+ specific

[njs] Style.

2019-05-04 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/b7cdfafdc20b branches: changeset: 944:b7cdfafdc20b user: Valentin Bartenev date: Sat May 04 16:59:24 2019 +0300 description: Style. diffstat: njs/njs_disassembler.c | 2 -- njs/njs_function.c | 1 - njs/njs_json.c | 8

[njs] Simplified condition in njs_function_alloc().

2019-05-04 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/551d173ab9ec branches: changeset: 943:551d173ab9ec user: Valentin Bartenev date: Sat May 04 05:52:15 2019 +0300 description: Simplified condition in njs_function_alloc(). There's no reason to check both flags when one depends on another. See

[njs] Added missed njs_internal_error() call in njs_regexp_exec_result().

2019-05-03 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/fe74f3c7863a branches: changeset: 942:fe74f3c7863a user: Valentin Bartenev date: Sat May 04 00:56:39 2019 +0300 description: Added missed njs_internal_error() call in njs_regexp_exec_result(). diffstat: njs/njs_regexp.c | 2 ++ 1 files

[njs] Rejection of multiple "var" declarations in the for-in statement.

2019-05-02 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/a9a4ffdea79c branches: changeset: 941:a9a4ffdea79c user: Valentin Bartenev date: Thu May 02 21:21:16 2019 +0300 description: Rejection of multiple "var" declarations in the for-in statement. diffstat: njs/njs_parser.c

[njs] Corrected error message when parsing "var" inside "for".

2019-05-02 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/ae95d2637819 branches: changeset: 940:ae95d2637819 user: Valentin Bartenev date: Thu May 02 11:08:44 2019 +0300 description: Corrected error message when parsing "var" inside "for". The "var_in" flag indicates pars

[njs] Removed NXT_READLINE_CFLAGS.

2019-04-26 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/60e98e247a53 branches: changeset: 932:60e98e247a53 user: Valentin Bartenev date: Fri Apr 26 19:30:43 2019 +0300 description: Removed NXT_READLINE_CFLAGS. It's not needed after 61f2616e21c7. diffstat: auto/make | 3 +-- auto/readline

[njs] Support for building with GNU Readline library.

2019-04-26 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/760d38110fd9 branches: changeset: 931:760d38110fd9 user: Valentin Bartenev date: Fri Apr 26 17:59:42 2019 +0300 description: Support for building with GNU Readline library. diffstat: auto/editline | 68

[njs] Object.entries() method.

2018-12-03 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/ce3a943df9c4 branches: changeset: 683:ce3a943df9c4 user: Valentin Bartenev date: Mon Dec 03 19:23:27 2018 +0300 description: Object.entries() method. diffstat: njs/njs_object.c | 151

[njs] Object.values() method.

2018-12-03 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/1af8f40573f2 branches: changeset: 682:1af8f40573f2 user: Valentin Bartenev date: Mon Dec 03 19:20:58 2018 +0300 description: Object.values() method. diffstat: njs/njs_json.c |4 +- njs/njs_object.c | 169

[njs] Slightly optimized njs_object_keys_array().

2018-12-01 Thread Valentin Bartenev
details: https://hg.nginx.org/njs/rev/4a543ed58c95 branches: changeset: 681:4a543ed58c95 user: Valentin Bartenev date: Sat Dec 01 22:32:33 2018 +0300 description: Slightly optimized njs_object_keys_array(). There is no need to iterate over the object properties second time if after

[njs] RegExp: fixed a case when lastIndex is greater than string size.

2018-11-12 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/f1da98bdd82f branches: changeset: 647:f1da98bdd82f user: Valentin Bartenev date: Mon Nov 12 17:22:14 2018 +0300 description: RegExp: fixed a case when lastIndex is greater than string size. Previously, it resulted in: "InternalError: pcre

[njs] Fixed equality operator with object and string.

2018-11-09 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/7d06ada396d7 branches: changeset: 646:7d06ada396d7 user: Valentin Bartenev date: Fri Nov 09 18:22:01 2018 +0300 description: Fixed equality operator with object and string. diffstat: njs/njs_vm.c | 25

[njs] Fixed equality operator when both operands are objects.

2018-11-09 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/025b22bf8c49 branches: changeset: 645:025b22bf8c49 user: Valentin Bartenev date: Thu Nov 08 20:32:45 2018 +0300 description: Fixed equality operator when both operands are objects. diffstat: njs/njs_vm.c | 4 njs/test

[njs] Fixed equality operator with "null" value as right operand.

2018-11-09 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/abec5f8d55a1 branches: changeset: 644:abec5f8d55a1 user: Valentin Bartenev date: Fri Nov 09 18:05:39 2018 +0300 description: Fixed equality operator with "null" value as right operand. diffstat: njs/njs_vm.c | 9

[njs] Fixed misplaced njs_internal_error().

2018-11-08 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/c5a3ac902bc2 branches: changeset: 643:c5a3ac902bc2 user: Valentin Bartenev date: Thu Nov 08 16:45:54 2018 +0300 description: Fixed misplaced njs_internal_error(). diffstat: njs/njs_variable.c | 3 ++- 1 files changed, 2 insertions(+), 1

[njs] Fixed configure process with non-default locale.

2018-07-24 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/7ccf9c0a412a branches: changeset: 568:7ccf9c0a412a user: Valentin Bartenev date: Tue Jul 24 19:25:39 2018 +0300 description: Fixed configure process with non-default locale. Overriding LANG might not work, since it has less precedence than LC_

[njs] String.padStart() and String.padEnd() methods.

2018-07-02 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/31e0580b3c02 branches: changeset: 547:31e0580b3c02 user: Valentin Bartenev date: Fri Jun 29 22:36:41 2018 +0300 description: String.padStart() and String.padEnd() methods. diffstat: njs/njs_string.c | 125

[njs] Allowed uppercased O in octal literal values.

2018-07-01 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/1cdf9c1a377d branches: changeset: 544:1cdf9c1a377d user: Valentin Bartenev date: Sun Jul 01 09:59:45 2018 +0300 description: Allowed uppercased O in octal literal values. diffstat: njs/njs_lexer.c | 2 +- njs/test/njs_unit_test.c

[njs] Added support of binary literals.

2018-07-01 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/e210675daceb branches: changeset: 545:e210675daceb user: Valentin Bartenev date: Sun Jul 01 10:01:53 2018 +0300 description: Added support of binary literals. diffstat: njs/njs_lexer.c | 21 + njs/njs_number.c

[njs] Fixed error handling of setting non-numeric Array.length.

2018-06-30 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/a361553ce219 branches: changeset: 543:a361553ce219 user: Valentin Bartenev date: Sat Jun 30 20:39:22 2018 +0300 description: Fixed error handling of setting non-numeric Array.length. diffstat: njs/njs_array.c | 5 + 1 files changed, 5

[njs] Introduced nxt_length() macro.

2018-06-26 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/255c79369f59 branches: changeset: 540:255c79369f59 user: Valentin Bartenev date: Tue Jun 26 18:25:22 2018 +0300 description: Introduced nxt_length() macro. diffstat: nginx/ngx_http_js_module.c | 4 ++-- njs/njs.c | 2

[nginx] MIME: added font/woff2 type (ticket #1243).

2018-06-15 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/118885f7a577 branches: changeset: 7303:118885f7a577 user: Valentin Bartenev date: Fri Jun 15 17:29:55 2018 +0300 description: MIME: added font/woff2 type (ticket #1243). diffstat: conf/mime.types | 1 + 1 files changed, 1 insertions(+), 0

[nginx] MIME: changed type for woff to font/woff (ticket #1243).

2018-06-15 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/bf1a7b363598 branches: changeset: 7302:bf1a7b363598 user: Valentin Bartenev date: Fri Jun 15 17:29:55 2018 +0300 description: MIME: changed type for woff to font/woff (ticket #1243). According to RFC 8081 the previously used application/font

[nginx] HTTP/2: enforce writing the sync request body buffer to file.

2017-10-04 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/b6dc472299da branches: changeset: 7118:b6dc472299da user: Valentin Bartenev <vb...@nginx.com> date: Wed Oct 04 21:15:15 2017 +0300 description: HTTP/2: enforce writing the sync request body buffer to file. The sync flag of HTTP/2 reques

[nginx] Parenthesized ASCII-related calculations.

2017-07-17 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/e3723f2a11b7 branches: changeset: 7067:e3723f2a11b7 user: Valentin Bartenev <vb...@nginx.com> date: Mon Jul 17 17:23:51 2017 +0300 description: Parenthesized ASCII-related calculations. This also fixes potential undefined behaviour in the

[nginx] HTTP/2: reject HTTP/2 requests without ":scheme" pseudo-header.

2017-06-13 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/3c55863e6887 branches: changeset: 7029:3c55863e6887 user: Piotr Sikora date: Tue Jun 13 17:01:08 2017 +0300 description: HTTP/2: reject HTTP/2 requests without ":scheme" pseudo-header. Signed-off-by: Piotr Sikora

[nginx] HTTP/2: send SETTINGS ACK after applying all SETTINGS params.

2017-06-02 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/859d80f57aab branches: changeset: 7023:859d80f57aab user: Piotr Sikora date: Fri Jun 02 15:05:24 2017 +0300 description: HTTP/2: send SETTINGS ACK after applying all SETTINGS params. This avoids sending unnecessary

[nginx] HTTP/2: don't send SETTINGS ACK before already queued DATA frames.

2017-06-02 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/7206c3630310 branches: changeset: 7025:7206c3630310 user: Piotr Sikora date: Fri Jun 02 15:05:32 2017 +0300 description: HTTP/2: don't send SETTINGS ACK before already queued DATA frames. Previously, SETTINGS ACK was

[nginx] HTTP/2: make SETTINGS ACK frame reusable.

2017-06-02 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/79de0d2aa432 branches: changeset: 7024:79de0d2aa432 user: Piotr Sikora date: Fri Jun 02 15:05:28 2017 +0300 description: HTTP/2: make SETTINGS ACK frame reusable. Signed-off-by: Piotr Sikora

[nginx] HTTP/2: emit new frames only after applying all SETTINGS params.

2017-06-02 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/645ed7112a01 branches: changeset: 7022:645ed7112a01 user: Piotr Sikora date: Fri Jun 02 15:05:20 2017 +0300 description: HTTP/2: emit new frames only after applying all SETTINGS params. Previously, new frames could be

[nginx] Version bump.

2017-05-30 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/dfed742c0183 branches: changeset: 7015:dfed742c0183 user: Valentin Bartenev <vb...@nginx.com> date: Tue May 30 19:29:45 2017 +0300 description: Version bump. diffstat: src/core/nginx.h | 4 ++-- 1 files changed, 2 insertions(+), 2 del

[nginx] HTTP/2: add debug logging of pseudo-headers and cookies.

2017-05-30 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/ab6ef3037840 branches: changeset: 7016:ab6ef3037840 user: Piotr Sikora date: Tue May 30 17:42:27 2017 +0300 description: HTTP/2: add debug logging of pseudo-headers and cookies. Signed-off-by: Piotr Sikora

[nginx] HTTP/2: fixed segfault when memory allocation failed.

2017-05-23 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/b624fbf7bee2 branches: changeset: 7004:b624fbf7bee2 user: Valentin Bartenev <vb...@nginx.com> date: Tue May 23 20:19:39 2017 +0300 description: HTTP/2: fixed segfault when memory allocation failed. If allocation of cleanup handler in the

[nginx] HTTP/2: reduced difference to HTTP/1.x in reading request body.

2017-04-24 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/2c4dbcd6f2e4 branches: changeset: 6989:2c4dbcd6f2e4 user: Valentin Bartenev <vb...@nginx.com> date: Mon Apr 24 14:17:13 2017 +0300 description: HTTP/2: reduced difference to HTTP/1.x in reading request body. Particularly, this elim

[nginx] Core: improved JSON escaping.

2017-04-12 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/289403abc84e branches: changeset: 6974:289403abc84e user: Valentin Bartenev <vb...@nginx.com> date: Wed Apr 12 22:47:57 2017 +0300 description: Core: improved JSON escaping. Two-character representations are now used for \b, \f, \n, \r,

[nginx] HTTP/2: style and typos.

2017-03-30 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/28dc369899ea branches: changeset: 6958:28dc369899ea user: Piotr Sikora date: Sun Mar 26 01:25:01 2017 -0700 description: HTTP/2: style and typos. Signed-off-by: Piotr Sikora diffstat:

[nginx] HTTP/2: fixed stream finalization.

2017-03-29 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/9b5f31fdb850 branches: changeset: 6956:9b5f31fdb850 user: Valentin Bartenev <vb...@nginx.com> date: Wed Mar 29 20:16:23 2017 +0300 description: HTTP/2: fixed stream finalization. In order to finalize stream the error flag is set o

[nginx] HTTP/2: emit PROTOCOL_ERROR on padding errors.

2017-03-29 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/d38161da62cd branches: changeset: 6955:d38161da62cd user: Piotr Sikora date: Sun Mar 26 01:25:05 2017 -0700 description: HTTP/2: emit PROTOCOL_ERROR on padding errors. Signed-off-by: Piotr Sikora

[nginx] HTTP/2: fix flow control with padded DATA frames.

2017-03-29 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/052305810ca4 branches: changeset: 6954:052305810ca4 user: Piotr Sikora date: Sun Mar 26 01:25:04 2017 -0700 description: HTTP/2: fix flow control with padded DATA frames. Previously, flow control didn't account for

[nginx] HTTP/2: fix $body_bytes_sent variable.

2017-03-29 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/663e6a48bfcb branches: changeset: 6953:663e6a48bfcb user: Piotr Sikora date: Sun Mar 26 01:25:03 2017 -0700 description: HTTP/2: fix $body_bytes_sent variable. Previously, its value included payloads and frame headers

[nginx] HTTP/2: fix $bytes_sent variable.

2017-03-29 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/afc60bd9008f branches: changeset: 6952:afc60bd9008f user: Piotr Sikora date: Sun Mar 26 01:25:02 2017 -0700 description: HTTP/2: fix $bytes_sent variable. Previously, its value accounted for payloads of HEADERS,

[njs] Test for right-associativity of exponential operator.

2016-12-23 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/58342f302de3 branches: changeset: 289:58342f302de3 user: Valentin Bartenev <vb...@nginx.com> date: Fri Dec 23 19:42:15 2016 +0300 description: Test for right-associativity of exponential operator. diffstat: njs/test/njs_unit_test.c | 3

[njs] The nxt_expect() macro.

2016-12-19 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/a76d7066a117 branches: changeset: 287:a76d7066a117 user: Valentin Bartenev <vb...@nginx.com> date: Mon Dec 19 14:19:43 2016 +0300 description: The nxt_expect() macro. diffstat: nxt/nxt_clang.h | 6 -- 1 files changed, 4 insertions

[njs] Exponentiation operators.

2016-12-19 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/f5225d9cc97b branches: changeset: 288:f5225d9cc97b user: Valentin Bartenev <vb...@nginx.com> date: Mon Dec 19 14:19:59 2016 +0300 description: Exponentiation operators. diffstat: njs/njs_disassembler.c |2 + njs/njs_gener

[nginx] Access log: support for json escaping.

2016-12-15 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/0cf4e82e7c48 branches: changeset: 6840:0cf4e82e7c48 user: Valentin Bartenev <vb...@nginx.com> date: Thu Dec 15 16:25:42 2016 +0300 description: Access log: support for json escaping. diffstat: src/http/modules/ngx_http_log_module.c

[njs] Math.pow() method fix.

2016-12-08 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/db0d8e2a4928 branches: changeset: 280:db0d8e2a4928 user: Valentin Bartenev <vb...@nginx.com> date: Thu Dec 08 01:52:41 2016 +0300 description: Math.pow() method fix. diffstat: njs/njs_math.c | 12 - njs/test/njs_unit_

[njs] NXT_DEBUG_MEMORY macro.

2016-12-08 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/af66e460d7a0 branches: changeset: 278:af66e460d7a0 user: Valentin Bartenev <vb...@nginx.com> date: Thu Dec 08 19:29:40 2016 +0300 description: NXT_DEBUG_MEMORY macro. It allows to turn off accumulation of small pool allocations into

[njs] Fixed a unit test for Math.acosh().

2016-12-02 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/7275165c3832 branches: changeset: 271:7275165c3832 user: Valentin Bartenev <vb...@nginx.com> date: Fri Dec 02 17:11:57 2016 +0300 description: Fixed a unit test for Math.acosh(). diffstat: njs/test/njs_unit_test.c | 6 +++--- 1 files c

[nginx] HTTP/2: fixed saving preread buffer to temp file (ticket #1143).

2016-11-28 Thread Valentin Bartenev
details: http://hg.nginx.org/nginx/rev/52bd8cc17f34 branches: changeset: 6805:52bd8cc17f34 user: Valentin Bartenev <vb...@nginx.com> date: Mon Nov 28 19:19:21 2016 +0300 description: HTTP/2: fixed saving preread buffer to temp file (ticket #1143). Previously, a request body

[njs] Math.clz32 method.

2016-11-21 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/fd2a05f9eacf branches: changeset: 266:fd2a05f9eacf user: Valentin Bartenev <vb...@nginx.com> date: Tue Nov 22 00:06:46 2016 +0300 description: Math.clz32 method. diffstat: njs/njs_math.c | 29 + nj

[njs] Optimized conversion of negative numbers to integer.

2016-11-19 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/9f0f13857c46 branches: changeset: 265:9f0f13857c46 user: Valentin Bartenev <vb...@nginx.com> date: Sat Nov 19 22:20:06 2016 +0300 description: Optimized conversion of negative numbers to integer. There is no reason to use fmod() for all ne

[njs] Math.imul() method.

2016-11-19 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/91dc07616b19 branches: changeset: 264:91dc07616b19 user: Valentin Bartenev <vb...@nginx.com> date: Sat Nov 19 22:20:06 2016 +0300 description: Math.imul() method. diffstat: njs/njs_math.c | 31 +

[njs] More Math methods from ES6.

2016-11-18 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/4f4bda866d8e branches: changeset: 262:4f4bda866d8e user: Valentin Bartenev <vb...@nginx.com> date: Fri Nov 18 17:25:25 2016 +0300 description: More Math methods from ES6. diffstat: njs/njs_math.c

[njs] Improved unit test for Math.exp(1).

2016-11-18 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/f06c2b48ff78 branches: changeset: 263:f06c2b48ff78 user: Valentin Bartenev <vb...@nginx.com> date: Fri Nov 18 17:25:45 2016 +0300 description: Improved unit test for Math.exp(1). diffstat: njs/test/njs_unit_test.c | 2 +- 1 files chan

[njs] Removed checking for range errors in Math.hypot().

2016-11-16 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/8253ecba7ad6 branches: changeset: 259:8253ecba7ad6 user: Valentin Bartenev <vb...@nginx.com> date: Wed Nov 16 12:49:53 2016 +0300 description: Removed checking for range errors in Math.hypot(). It seems other interpreters do not

[njs] Refactored Math methods.

2016-11-16 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/56bf74dccca1 branches: changeset: 258:56bf74dccca1 user: Valentin Bartenev <vb...@nginx.com> date: Wed Nov 16 12:49:53 2016 +0300 description: Refactored Math methods. diffstat: njs/njs_math.c

[njs] Moved njs_string_offset_map_init() closer to its usage.

2016-11-10 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/0939df226d5c branches: changeset: 251:0939df226d5c user: Valentin Bartenev <vb...@nginx.com> date: Thu Nov 10 19:09:13 2016 +0300 description: Moved njs_string_offset_map_init() closer to its usage. No functional changes. diffstat:

[njs] On-demand initialization of UTF-8 strings offset map.

2016-11-10 Thread Valentin Bartenev
details: http://hg.nginx.org/njs/rev/adf61ca4267b branches: changeset: 250:adf61ca4267b user: Valentin Bartenev <vb...@nginx.com> date: Thu Nov 10 18:54:28 2016 +0300 description: On-demand initialization of UTF-8 strings offset map. diffstat: njs/njs_string.c

  1   2   3   4   >