Skip to content

Commit

Permalink
lib: remove useless getLibuvNow in internal/timers
Browse files Browse the repository at this point in the history
PR-URL: #23995
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com>
  • Loading branch information
ZYSzys authored and targos committed Nov 5, 2018
1 parent 424be28 commit 874393b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/internal/timers.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ module.exports = {
kRefed,
initAsyncResource,
setUnrefTimeout,
validateTimerDuration,
getLibuvNow: internalBinding('timers').getLibuvNow,
validateTimerDuration
};

var timers;
Expand Down
3 changes: 2 additions & 1 deletion test/parallel/test-timers-now.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

require('../common');
const assert = require('assert');
const { getLibuvNow } = require('internal/timers');
const { internalBinding } = require('internal/test/binding');
const { getLibuvNow } = internalBinding('timers');

// Return value of getLibuvNow() should easily fit in a SMI after start-up.
assert(getLibuvNow() < 0x3ffffff);
3 changes: 2 additions & 1 deletion test/parallel/test-timers-ordering.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
'use strict';
require('../common');
const assert = require('assert');
const { getLibuvNow } = require('internal/timers');
const { internalBinding } = require('internal/test/binding');
const { getLibuvNow } = internalBinding('timers');

const N = 30;

Expand Down

0 comments on commit 874393b

Please sign in to comment.