Mercurial > hg > nginx-site
changeset 2387:2df75fb79ca7
njs-0.3.2
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Tue, 21 May 2019 19:07:06 +0300 |
parents | 3e31ef06a7e3 |
children | d323beea61ec |
files | xml/en/docs/njs/changes.xml xml/en/docs/njs/compatibility.xml xml/index.xml xml/ru/docs/njs/compatibility.xml |
diffstat | 4 files changed, 256 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/njs/changes.xml Tue May 21 18:03:46 2019 +0300 +++ b/xml/en/docs/njs/changes.xml Tue May 21 19:07:06 2019 +0300 @@ -9,9 +9,218 @@ <article name="Changes" link="/en/docs/njs/changes.html" lang="en" - rev="18" + rev="19" toc="no"> +<section id="njs0.3.2" name="Changes with 0.3.2"> + +<para> +Release Date: +21 May 2019 +</para> + +<para> +Core: +<list type="bullet"> + +<listitem> +<para> +Feature: +added support for template literals. +Thanks to 洪志道 (Hong Zhi Dao) and Artem S. Povalyukhin. +</para> +</listitem> + +<listitem> +<para> +Feature: +executing command from command line arguments. +</para> +</listitem> + +<listitem> +<para> +Feature: +added support for RegExp <literal>groups</literal> object (ES9). +</para> +</listitem> + +<listitem> +<para> +Feature: +added block scoped function definitions support. +</para> +</listitem> + +<listitem> +<para> +Feature: +added support for building with GNU Readline library. +</para> +</listitem> + +<listitem> +<para> +Feature: +made configurable +<literal>length</literal>, +<literal>name</literal>, +and most of built-in methods. +</para> +</listitem> + +<listitem> +<para> +Feature: +made all constructor properties configurable. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed <literal>Regexp.prototype.exec()</literal> for Unicode-only regexps. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed <literal>njs_vm_value_dump()</literal> for empty string values. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed RegExp constructor for regexp value arguments. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed walking over prototypes chain during iteration over an object. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed overflow in <literal>Array.prototype.concat()</literal>. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed length calculation for UTF-8 string with escape characters. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed parsing surrogate pair presents as UTF-16 escape sequences. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed processing the “*” quantifier for +<literal>String.prototype.match()</literal>. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed <literal>Date()</literal> constructor with one argument. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed arrays expansion. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed heap-buffer-overflow in +<literal>String.prototype.replace()</literal>. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed heap-buffer-overflow in +<literal>String.prototype.lastIndexOf()</literal>. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed regexp literals parsing with escaped backslash +and backslash in square brackets. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed regexp literals with lone closing brackets. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed uninitialized-memory-access in +<literal>Object.defineProperties()</literal>. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed processing the “*” quantifier for +<literal>String.prototype.replace()</literal>. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed <literal>Array.prototype.slice()</literal> for UTF8-invalid byte strings. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed <literal>String.prototype.split()</literal> for UTF8-invalid byte strings. +</para> +</listitem> + +<listitem> +<para> +Bugfix: +fixed handling of empty block statements. +</para> +</listitem> + +</list> +</para> + +</section> + + <section id="njs0.3.1" name="Changes with 0.3.1"> <para>
--- a/xml/en/docs/njs/compatibility.xml Tue May 21 18:03:46 2019 +0300 +++ b/xml/en/docs/njs/compatibility.xml Tue May 21 19:07:06 2019 +0300 @@ -9,7 +9,7 @@ <article name="Compatibility" link="/en/docs/njs/compatibility.html" lang="en" - rev="9" + rev="10" toc="no"> <section> @@ -174,8 +174,18 @@ </listitem> <listitem> -ES5.1 <literal>RegExp</literal> methods: -<literal>test</literal>, <literal>exec</literal> +<literal>RegExp</literal>: +<list type="bullet"> + +<listitem> +ES5.1: methods <literal>test</literal>, <literal>exec</literal> +</listitem> + +<listitem> +ES9: named capture groups (<link doc="changes.xml" id="njs0.3.2">0.3.2</link>) +</listitem> +</list> + </listitem> <listitem> @@ -245,6 +255,12 @@ (<link doc="changes.xml" id="njs0.3.1">0.3.1</link>) </listitem> +<listitem> +Template literals: +multiline strings, expression interpolation, nesting templates +(<link doc="changes.xml" id="njs0.3.2">0.3.2</link>) +</listitem> + </list> </para>
--- a/xml/index.xml Tue May 21 18:03:46 2019 +0300 +++ b/xml/index.xml Tue May 21 19:07:06 2019 +0300 @@ -9,6 +9,14 @@ <event date="2019-05-21"> <para> +<link doc="en/docs/njs/index.xml">njs-0.3.2</link> +version has been released, featuring template literals support +and <link doc="en/docs/njs/changes.xml" id="njs0.3.2">more</link>. +</para> +</event> + +<event date="2019-05-21"> +<para> <link doc="en/download.xml">nginx-1.17.0</link> mainline version has been released. </para>
--- a/xml/ru/docs/njs/compatibility.xml Tue May 21 18:03:46 2019 +0300 +++ b/xml/ru/docs/njs/compatibility.xml Tue May 21 19:07:06 2019 +0300 @@ -9,7 +9,7 @@ <article name="Совместимость" link="/ru/docs/njs/compatibility.html" lang="ru" - rev="9" + rev="10" toc="no"> <section> @@ -174,8 +174,18 @@ </listitem> <listitem> -ES5.1 методы <literal>RegExp</literal>: -<literal>test</literal>, <literal>exec</literal> +<literal>RegExp</literal>: +<list type="bullet"> + +<listitem> +ES5.1: методы <literal>test</literal>, <literal>exec</literal> +</listitem> + +<listitem> +ES9: именные группы записи (<link doc="changes.xml" id="njs0.3.2">0.3.2</link>) +</listitem> +</list> + </listitem> <listitem> @@ -247,6 +257,12 @@ (<link doc="changes.xml" id="njs0.3.1">0.3.1</link>) </listitem> +<listitem> +Шаблонные строки: +многострочные литералы, интерполяция выражений, вложенные шаблоны +(<link doc="changes.xml" id="njs0.3.2">0.3.2</link>) +</listitem> + </list> </para>