Dmitry Volyntsev
[nginx-announce] njs-0.6.0
June 15, 2021 01:16PM

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

This release proceeds to extend the coverage of ECMAScript

Notable new features:
- let and const declarations support
: >> fuction test() { x = 1; let x; }
: undefined
: >> test()
: ReferenceError: cannot access variable before initialization
: >> function test2() {const x = 1; x = 2; }
: undefined
: >> test2()
: TypeError: assignment to constant variable

You can learn more about njs:

- Overview and introduction:
- NGINX JavaScript in Your Web Server Configuration:
- Extending NGINX with Custom Code:
- Using node modules with njs:
- Writing njs code using TypeScript definition files:

Feel free to try it and give us feedback on:

- Github:
- Mailing list:

Changes with njs 0.6.0 15 Jun 2021


*) Feature: added let and const declaration support.

*) Feature: added RegExp.prototype[Symbol.split].

*) Feature: added sticky flag support for RegExp.

*) Bugfix: fixed heap-buffer-overflow in

*) Bugfix: fixed RegExp.prototype.test() according to the

*) Bugfix: fixed String.prototype.split() according to the

*) Bugfix: fixed use-of-uninitialized-value while tracking
rejected promises.

*) Bugfix: fixed njs.dump() for objects with circular

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

Online Users

Guests: 89
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