JavaScript Engine (original) (raw)

Starting from version 0.8.6, multiple JavaScript engines are supported. To specify a particular engine, use the js_engine directive available for both thehttpandstream. By default, the njs engine is used.

njs engine

njs is an embeddable JavaScript engine developed as a part of the njs module. See the Сompatibility section for details.

QuickJS engine

QuickJS is a lightweight, embeddable JavaScript engine that supports the ES2023 specification, including features as modules, asynchronous generators, proxies and BigInt.

Since version 0.8.6, a drop-in replacement fornjs/nginx objectshas been introduced to ensure compatibility with the njs engine, with the following exceptions:

njs built-in modules status:

njs built-in objects status:

nginx built-in objects status: