[nginx-announce] njs-0.3.7

Dmitry Volyntsev xeioex at nginx.com
Tue Nov 19 14:46:33 UTC 2019


Hello,

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

This release proceeds to extend the coverage of ECMAScript
specifications.

Notable new features:

- Object.assign() method:
: > var obj = { a: 1, b: 2 }
: undefined
: > var copy = Object.assign({}, obj)
: undefined
: > console.log(copy)
: {a:1,b:2}

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.3.7                                    19 Nov 2019

     nginx modules:

     *) Improvement: refactored iteration over external objects.

     Core:

     *) Feature: added Object.assign().

     *) Feature: added Array.prototype.copyWithin().

     *) Feature: added support for labels in console.time().

     *) Change: removed console.help() from CLI.

     *) Improvement: moved constructors and top-level objects to
        global object.

     *) Improvement: arguments validation for configure script.

     *) Improvement: refactored JSON methods.

     *) Bugfix: fixed heap-buffer-overflow in njs_array_reverse_iterator()
        function. The following functions were affected:
        Array.prototype.lastIndexOf(), Array.prototype.reduceRight().

     *) Bugfix: fixed [[Prototype]] slot of NativeErrors.

     *) Bugfix: fixed NativeError.prototype.message properties.

     *) Bugfix: added conversion of "this" value to object in
        Array.prototype functions.

     *) Bugfix: fixed iterator for Array.prototype.find() and
        Array.prototype.findIndex() functions.

     *) Bugfix: fixed Array.prototype.includes() and
        Array.prototype.join() with "undefined" argument.

     *) Bugfix: fixed "constructor" property of "Hash" and "Hmac"
        objects.

     *) Bugfix: fixed "__proto__" property of getters and setters.

     *) Bugfix: fixed "Date" object string formatting.

     *) Bugfix: fixed handling of NaN and -0 arguments in Math.min()
        and Math.max().

     *) Bugfix: fixed Math.round() according to the specification.

     *) Bugfix: reimplemented "bound" functions according to
        the specification.


More information about the nginx-announce mailing list