details:   
https://github.com/nginx/njs/commit/7ba3a8b943488f801a8dde64d76a965b7686094c
branches:  master
commit:    7ba3a8b943488f801a8dde64d76a965b7686094c
user:      Dmitry Volyntsev <xei...@nginx.com>
date:      Wed, 7 Aug 2024 22:27:45 -0700
description:
Fixed Buffer.prototype.writeFloat() and friends.


---
 src/njs_buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/njs_buffer.c b/src/njs_buffer.c
index fc95aebd..fa087a19 100644
--- a/src/njs_buffer.c
+++ b/src/njs_buffer.c
@@ -1504,7 +1504,7 @@ njs_buffer_prototype_write_float(njs_vm_t *vm, 
njs_value_t *args,
         *((uint64_t *) u8) = conv_f64.u;
     }
 
-    njs_set_undefined(retval);
+    njs_set_number(retval, index + size);
 
     return NJS_OK;
 }
_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-devel

Reply via email to