test: add fast api tests for getLibuvNow() by anonrig · Pull Request #58022 · nodejs/node · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/timers.cc
3 changes: 1 addition & 2 deletions src/timers.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ class BindingData : public SnapshotableObject {
static void SetupTimers(const v8::FunctionCallbackInfo<v8::Value>& args);

static void SlowGetLibuvNow(const v8::FunctionCallbackInfo<v8::Value>& args);
static double FastGetLibuvNow(v8::Local<v8::Object> unused,
v8::Local<v8::Object> receiver);
static double FastGetLibuvNow(v8::Local<v8::Value> receiver);
static double GetLibuvNowImpl(BindingData* data);

static void SlowScheduleTimer(
Expand Down
24 changes: 21 additions & 3 deletions test/parallel/test-timers-now.js