Welcome! Log In Create A New Profile

Advanced

[nginx-announce] njs-0.3.1

Posted by Dmitry Volyntsev 
Dmitry Volyntsev
[nginx-announce] njs-0.3.1
April 16, 2019 11:52AM
Hello,

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

This release proceeds to extend the coverage of ECMAScript
specifications and modules functionality.

- Added ES6 arrow functions support:
: > var materials = ['Hydrogen', 'Helium', 'Lithium']
: undefined
: > materials.map(material => material.length)
: [
: 8,
: 6,
: 7
: ]

: r.subrequest('/foo', rep => r.return(rep.status, rep.responseBody))

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.1 16 Apr 2019

Core:

*) Feature: added arrow functions support.
Thanks to 洪志道 (Hong Zhi Dao) and Artem S. Povalyukhin.

*) Feature: added Object.getOwnPropertyNames().
Thanks to Artem S. Povalyukhin.

*) Feature: added Object.getOwnPropertyDescriptors().
Thanks to Artem S. Povalyukhin.

*) Feature: making __proto__ accessor descriptor of Object instances
mutable.

*) Feature: added shebang support in CLI.

*) Feature: added support for module mode execution in CLI. In module
mode global this is unavailable.

*) Bugfix: fixed editline detection.

*) Bugfix: fixed Function.prototype.bind().
Thanks to 洪志道 (Hong Zhi Dao).

*) Bugfix: fixed checking of duplication of parameters for functions.
Thanks to 洪志道 (Hong Zhi Dao).

*) Bugfix: fixed function declaration with the same name as a variable.
Thanks to 洪志道 (Hong Zhi Dao).

*) Improvement: code related to parsing of objects, variables and
functions is refactored.
Thanks to 洪志道 (Hong Zhi Dao).

*) Improvement: console.log() improved for outputting large values.

*) Improvement: console.log() improved for outputting strings in a
compliant way (without escaping and quotes).

*) Improvement: using ES6 version of ToInt32(), ToUint32(), ToLength().
_______________________________________________
nginx-announce mailing list
nginx-announce@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-announce
Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 170
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready