Dmitry Volyntsev
[nginx-announce] njs-0.2.7
December 25, 2018 10:20AM

I'm glad to announce a new release of NGINX JavaScript module (njs).

This release proceeds to extend the coverage of ECMAScript specifications.

- Added support for ES6 rest parameters syntax.
Thanks to Alexander Pyshchev.

: > var add = function(prev, curr) { return prev + curr }
: undefined
: > function sum(...args) { return args.reduce(add) }
: undefined
: > sum(1,2,3)
: 6
: > sum(1,2,3,4)
: 10

- Added ES8 Object.values() and Object.entries() methods.

You can learn more about njs:

- Overview and introduction:
- Presentation:

Feel free to try it and give us feedback on:

- Github:
- Mailing list:

Changes with njs 0.2.7 25 Dec 2018


*) Feature: rest parameters syntax (destructuring is not supported).
Thanks to Alexander Pyshchev.

*) Feature: added Object.entries() method.

*) Feature: added Object.values() method.

*) Improvement: code generator refactored and simplified.

*) Bugfix: fixed automatic semicolon insertion.

*) Bugfix: fixed assignment expression from compound assignment.

*) Bugfix: fixed comparison of Byte and UTF8 strings.

*) Bugfix: fixed type of iteration variable in for-in with array

*) Bugfix: fixed building on paltforms without librt.

*) Bugfix: miscellaneous bugs have been fixed.

nginx-announce mailing list
Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 52
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready