From 641386d44e516f2a4bb9f90e48a257fb8500c129 Mon Sep 17 00:00:00 2001 From: "Sergey A. Osokin" Date: Sat, 10 May 2025 20:49:23 -0400 Subject: */*: update NGINX JavaScript: 0.8.10 -> 0.9.0 (+) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The patches applied to the www/unit are based on https://github.com/nginx/unit/pull/1611/ Thanks to: Andrew Clayton Core: *) Feature: refactored working with built-in strings, symbols and small integers. Performance improvements (arewefastyet/benchmarks/v8-v7 benchmark): Richards: +57% (631 → 989) Crypto: +7% (1445 → 1551) RayTrace: +37% (562 → 772) NavierStokes: +20% (2062 → 2465) Overall score: +29% (1014 → 1307) *) Bugfix: fixed regexp undefined value of captured group. *) Bugfix: fixed GCC 15 build with -Wunterminated-string-initialization. --- www/unit/files/patch-auto_njs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 www/unit/files/patch-auto_njs (limited to 'www/unit/files/patch-auto_njs') diff --git a/www/unit/files/patch-auto_njs b/www/unit/files/patch-auto_njs new file mode 100644 index 000000000000..a4cbc6ec8d3c --- /dev/null +++ b/www/unit/files/patch-auto_njs @@ -0,0 +1,22 @@ +--- auto/njs.orig 2025-02-27 22:02:21 UTC ++++ auto/njs +@@ -25,8 +25,8 @@ nxt_feature_test="#include + nxt_feature_libs="$NXT_NJS_LIBS $NXT_NJS_AUX_LIBS" + nxt_feature_test="#include + +- #if NJS_VERSION_NUMBER < 0x000803 +- # error njs < 0.8.3 is not supported. ++ #if NJS_VERSION_NUMBER < 0x000900 ++ # error njs < 0.9.0 is not supported. + #endif + + int main(void) { +@@ -44,7 +44,7 @@ if [ $nxt_found = no ]; then + + if [ $nxt_found = no ]; then + $echo +- $echo $0: error: no njs library \>= 0.8.3 found. ++ $echo $0: error: no njs library \>= 0.9.0 found. + $echo + exit 1; + fi -- cgit v1.2.3