Welcome! Log In Create A New Profile

Advanced

njs 0.2.5 release

Dmitry Volyntsev
October 30, 2018 11:10AM
Hello,

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

This release proceeds to extend the coverage of ECMAScript 5.1
specification.

- arguments object is added. So, it is possible to write
functions which can take the arbitrary number of arguments
as well as wrappers for njs built-in functions.

function concat(sep) {
var args = Array.prototype.slice.call(arguments, 1);
return args.join(sep);
}

> concat(' ', 'Hello', 'World', '!')
'Hello World !'


You can learn more about njs:

- Overview and introduction: http://nginx.org/en/docs/njs/
- Presentation: https://youtu.be/Jc_L6UffFOs


Feel free to try it and give us feedback on:

- Github: https://github.com/nginx/njs/issues
- Mailing list: http://mailman.nginx.org/mailman/listinfo/nginx-devel


Changes with njs 0.2.5 30 Oct 2018

nginx modules:

*) Bugfix: fixed counting pending events in stream module.

*) Bugfix: fixed s.off() in stream module.

*) Bugfix: fixed processing of data chunks in js_filter in
stream module.

*) Bugfix: fixed http status and contentType getter in http module.

*) Bugfix: fixed http response and parent getters in http module.

Core:

*) Feature: arguments object support.

*) Feature: non-integer fractions support.

*) Improvement: handling non-array values in
Array.prototype.slice().

*) Bugfix: fixed Array.prototype.length setter.

*) Bugfix: fixed njs_array_alloc() for length > 2**31.

*) Bugfix: handling int overflow in njs_array_alloc() on 32bit
archs.

*) Bugfix: fixed code size mismatch error message.

*) Bugfix: fixed delete operator in a loop.

*) Bugfix: fixed Object.getOwnPropertyDescriptor() for complex
object (inherited from Array and string values).

*) Bugfix: fixed Object.prototype.hasOwnProperty() for non-object
properties.

*) Bugfix: miscellaneous additional bugs have been fixed.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

njs 0.2.5 release

Dmitry Volyntsev October 30, 2018 11:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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