From 433ecc9047c1701a6b384fc94593c1f41f9f6bf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 3 Aug 2023 22:36:32 +0200 Subject: refactor: rewrite http_next ops to use op2 macro (#19934) Ref #19915 --------- Co-authored-by: Matt Mastracci --- ext/http/00_serve.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/http/00_serve.js') diff --git a/ext/http/00_serve.js b/ext/http/00_serve.js index b51dfee07..af4353e0e 100644 --- a/ext/http/00_serve.js +++ b/ext/http/00_serve.js @@ -726,7 +726,7 @@ function serveHttpOn(context, callback) { try { // Attempt to pull as many requests out of the queue as possible before awaiting. This API is // a synchronous, non-blocking API that returns u32::MAX if anything goes wrong. - while ((req = op_http_try_wait(rid)) !== 0xffffffff) { + while ((req = op_http_try_wait(rid)) !== -1) { PromisePrototypeCatch(callback(req), promiseErrorHandler); } currentPromise = op_http_wait(rid); @@ -741,7 +741,7 @@ function serveHttpOn(context, callback) { } throw new Deno.errors.Http(error); } - if (req === 0xffffffff) { + if (req === -1) { break; } PromisePrototypeCatch(callback(req), promiseErrorHandler); -- cgit v1.2.3