LinuCエヴァンジェリストの鯨井貴博@opensourcetechです。
nginx njs の最新バージョン、0.6.0がリリースされました。
http://nginx.org/
更新内容は、以下の通り。
http://nginx.org/en/docs/njs/changes.html
Changes with njs 0.6.0 Release Date: 15 June 2021 Core: Feature: added let and const declaration support. Feature: added RegExp.prototype[Symbol.split]. Feature: added sticky flag support for RegExp. Bugfix: fixed heap-buffer-overflow in String.prototype.lastIndexOf(). Bugfix: fixed RegExp.prototype.test() according to the specification. Bugfix: fixed String.prototype.split() according to the specification. Bugfix: fixed use-of-uninitialized-value while tracking rejected promises. Bugfix: fixed njs.dump() for objects with circular references.
日本語訳は、以下となります。
Changes with njs 0.6.0 Release Date: 15 June 2021 Core: 機能追加:letおよびconst宣言のサポートが追加されました。 機能追加:RegExp.prototype[Symbol.split]が追加されました。 機能追加:RegExpのスティッキーフラグサポートが追加されました。 バグ修正:String.prototype.lastIndexOf()のヒープバッファオーバーフローが修正されました。 バグ修正:仕様に従ってRegExp.prototype.test()が修正されました。 バグ修正:仕様に従ってString.prototype.split()が修正されました。 バグ修正:拒否されたプロミスを追跡する際の初期化されていない値の使用が修正されました。 バグ修正:循環参照を持つオブジェクトのnjs.dump()が修正されました。