Want to subscribe to topics you're interested in?
Become a Member

Nginx [nginx-announce] njs-0.3.7

Discussion in 'Nginx and PHP-FPM news & discussions' started by eva2000, Nov 20, 2019.

  1. eva2000

    eva2000 Administrator Staff Member

    May 24, 2014
    Brisbane, Australia
    Local Time:
    2:10 PM
    Nginx 1.21.x
    MariaDB 10.x

    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:

    - 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.


    *) 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"

    *) 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.
    nginx-announce mailing list

    Continue reading...