Skip to content

Commit

Permalink
Fix timers namespace
Browse files Browse the repository at this point in the history
PR-URL: #1958
  • Loading branch information
tshemsedinov committed Feb 5, 2024
1 parent b540c99 commit a2a7ad0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ node.StringDecoder = node['string_decoder'];
node.perfHooks = node['perf_hooks'];
node.asyncHooks = node['async_hooks'];
node.fsp = node.fs.promises;
node.timers.promises = require('node:timers/promises');
if (!node.timers.promises) {
node.timers.promises = require('node:timers/promises');
}

Object.freeze(node);
Object.freeze(npm);
Expand Down

0 comments on commit a2a7ad0

Please sign in to comment.