njs 0.2.5 release

Dmitry Volyntsev xeioex at nginx.com
Tue Oct 30 15:07:40 UTC 2018


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.


More information about the nginx mailing list