From 8e0cb3edcbc377d88097c46a7ac89265423d76c1 Mon Sep 17 00:00:00 2001 From: Dmitry Volyntsev Date: Wed, 16 Dec 2020 20:27:31 +0000 Subject: [PATCH] Avoiding modification of vm->retval in njs_promise_alloc(). Alloc functions are not expected to modify existing values. --- src/njs_promise.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/njs_promise.c b/src/njs_promise.c index c676f681..a31f2cc5 100644 --- a/src/njs_promise.c +++ b/src/njs_promise.c @@ -107,7 +107,6 @@ njs_promise_alloc(njs_vm_t *vm) njs_queue_init(&data->fulfill_queue); njs_queue_init(&data->reject_queue); - njs_set_promise(&vm->retval, promise); njs_set_data(&promise->value, data, 0); return promise; -- 2.47.3