[njs] Tests262: fixed merge() with null values.
noreply at nginx.com
noreply at nginx.com
Sat Feb 8 02:15:01 UTC 2025
details: https://github.com/nginx/njs/commit/a5e4a75604135149c6e9d616378372c664033dc9
branches: master
commit: a5e4a75604135149c6e9d616378372c664033dc9
user: Dmitry Volyntsev <xeioex at nginx.com>
date: Thu, 30 Jan 2025 19:10:29 -0800
description:
Tests262: fixed merge() with null values.
---
test/harness/runTsuite.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/harness/runTsuite.js b/test/harness/runTsuite.js
index 5ba0ef46..1823e4a2 100644
--- a/test/harness/runTsuite.js
+++ b/test/harness/runTsuite.js
@@ -63,7 +63,7 @@ function merge(to, from) {
if (typeof r[v] == 'object' && typeof from[v] == 'object') {
r[v] = merge(r[v], from[v]);
- } else if (typeof from[v] == 'object') {
+ } else if (typeof from[v] == 'object' && from[v] !== null) {
if (Buffer.isBuffer(from[v])) {
r[v] = Buffer.from(from[v]);
More information about the nginx-devel
mailing list