From acae4a35613c9206257bdc47d434aa00dd61dbea Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Mon, 13 Jan 2025 02:39:54 -0800 Subject: [PATCH] Fix use of .call in builtin @nektro we can't use .call in builtins --- src/js/node/http2.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/node/http2.ts b/src/js/node/http2.ts index dad753fe4d523c..3f75d0724844c3 100644 --- a/src/js/node/http2.ts +++ b/src/js/node/http2.ts @@ -87,8 +87,8 @@ function utcDate() { function cache() { const d = new Date(); - utcCache = DatePrototypeToUTCString.$call(d); - setTimeout(resetCache, 1000 - DatePrototypeGetMilliseconds.call(d)).unref(); + utcCache = d.toUTCString(); + setTimeout(resetCache, 1000 - d.getMilliseconds()).unref(); } function resetCache() {