From 7ba3a8b943488f801a8dde64d76a965b7686094c Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Wed, 7 Aug 2024 22:27:45 -0700 Subject: [PATCH] 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; } -- 2.47.3