Skip to content

Commit

Permalink
Fix use of .call in builtin
Browse files Browse the repository at this point in the history
@nektro we can't use .call in builtins
  • Loading branch information
Jarred-Sumner committed Jan 13, 2025
1 parent d6cccbf commit acae4a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/node/http2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit acae4a3

Please sign in to comment.