From 9b542d91f568f14f8730a7e40088ff77823a14b3 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 4 Dec 2022 17:02:01 +0300 Subject: [PATCH] minor fix... Signed-off-by: Alex A. Naanou --- Promise.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Promise.js b/Promise.js index 9cfea47..078cbbc 100644 --- a/Promise.js +++ b/Promise.js @@ -853,7 +853,7 @@ object.Constructor('SyncPromise', Promise, { this.constructor.reject( reject ? reject(this.error) - : this.error) } + : this.error) : resolve ? this.constructor.resolve( resolve(this.value))