@@ -169,7 +169,8 @@ void HistogramBase::RecordDelta(const FunctionCallbackInfo<Value>& args) {
169
169
(*histogram)->RecordDelta ();
170
170
}
171
171
172
- void HistogramBase::FastRecordDelta (Local<Value> receiver) {
172
+ void HistogramBase::FastRecordDelta (Local<Value> unused,
173
+ Local<Value> receiver) {
173
174
HistogramBase* histogram;
174
175
ASSIGN_OR_RETURN_UNWRAP (&histogram, receiver);
175
176
(*histogram)->RecordDelta ();
@@ -189,7 +190,8 @@ void HistogramBase::Record(const FunctionCallbackInfo<Value>& args) {
189
190
(*histogram)->Record (value);
190
191
}
191
192
192
- void HistogramBase::FastRecord (Local<Value> receiver,
193
+ void HistogramBase::FastRecord (Local<Value> unused,
194
+ Local<Value> receiver,
193
195
const int64_t value,
194
196
FastApiCallbackOptions& options) {
195
197
if (value < 1 ) {
@@ -436,7 +438,9 @@ void IntervalHistogram::Start(const FunctionCallbackInfo<Value>& args) {
436
438
histogram->OnStart (args[0 ]->IsTrue () ? StartFlags::RESET : StartFlags::NONE);
437
439
}
438
440
439
- void IntervalHistogram::FastStart (Local<Value> receiver, bool reset) {
441
+ void IntervalHistogram::FastStart (Local<Value> unused,
442
+ Local<Value> receiver,
443
+ bool reset) {
440
444
IntervalHistogram* histogram;
441
445
ASSIGN_OR_RETURN_UNWRAP (&histogram, receiver);
442
446
histogram->OnStart (reset ? StartFlags::RESET : StartFlags::NONE);
@@ -448,7 +452,7 @@ void IntervalHistogram::Stop(const FunctionCallbackInfo<Value>& args) {
448
452
histogram->OnStop ();
449
453
}
450
454
451
- void IntervalHistogram::FastStop (Local<Value> receiver) {
455
+ void IntervalHistogram::FastStop (Local<Value> unused, Local<Value> receiver) {
452
456
IntervalHistogram* histogram;
453
457
ASSIGN_OR_RETURN_UNWRAP (&histogram, receiver);
454
458
histogram->OnStop ();
@@ -564,42 +568,45 @@ void HistogramImpl::DoReset(const FunctionCallbackInfo<Value>& args) {
564
568
(*histogram)->Reset ();
565
569
}
566
570
567
- void HistogramImpl::FastReset (Local<Value> receiver) {
571
+ void HistogramImpl::FastReset (Local<Value> unused, Local<Value> receiver) {
568
572
HistogramImpl* histogram = HistogramImpl::FromJSObject (receiver);
569
573
(*histogram)->Reset ();
570
574
}
571
575
572
- double HistogramImpl::FastGetCount (Local<Value> receiver) {
576
+ double HistogramImpl::FastGetCount (Local<Value> unused, Local<Value> receiver) {
573
577
HistogramImpl* histogram = HistogramImpl::FromJSObject (receiver);
574
578
return static_cast <double >((*histogram)->Count ());
575
579
}
576
580
577
- double HistogramImpl::FastGetMin (Local<Value> receiver) {
581
+ double HistogramImpl::FastGetMin (Local<Value> unused, Local<Value> receiver) {
578
582
HistogramImpl* histogram = HistogramImpl::FromJSObject (receiver);
579
583
return static_cast <double >((*histogram)->Min ());
580
584
}
581
585
582
- double HistogramImpl::FastGetMax (Local<Value> receiver) {
586
+ double HistogramImpl::FastGetMax (Local<Value> unused, Local<Value> receiver) {
583
587
HistogramImpl* histogram = HistogramImpl::FromJSObject (receiver);
584
588
return static_cast <double >((*histogram)->Max ());
585
589
}
586
590
587
- double HistogramImpl::FastGetMean (Local<Value> receiver) {
591
+ double HistogramImpl::FastGetMean (Local<Value> unused, Local<Value> receiver) {
588
592
HistogramImpl* histogram = HistogramImpl::FromJSObject (receiver);
589
593
return (*histogram)->Mean ();
590
594
}
591
595
592
- double HistogramImpl::FastGetExceeds (Local<Value> receiver) {
596
+ double HistogramImpl::FastGetExceeds (Local<Value> unused,
597
+ Local<Value> receiver) {
593
598
HistogramImpl* histogram = HistogramImpl::FromJSObject (receiver);
594
599
return static_cast <double >((*histogram)->Exceeds ());
595
600
}
596
601
597
- double HistogramImpl::FastGetStddev (Local<Value> receiver) {
602
+ double HistogramImpl::FastGetStddev (Local<Value> unused,
603
+ Local<Value> receiver) {
598
604
HistogramImpl* histogram = HistogramImpl::FromJSObject (receiver);
599
605
return (*histogram)->Stddev ();
600
606
}
601
607
602
- double HistogramImpl::FastGetPercentile (Local<Value> receiver,
608
+ double HistogramImpl::FastGetPercentile (Local<Value> unused,
609
+ Local<Value> receiver,
603
610
const double percentile) {
604
611
HistogramImpl* histogram = HistogramImpl::FromJSObject (receiver);
605
612
return static_cast <double >((*histogram)->Percentile (percentile));
0 commit comments