@@ -170,7 +170,8 @@ void HistogramBase::RecordDelta(const FunctionCallbackInfo<Value>& args) {
170170 (*histogram)->RecordDelta ();
171171}
172172
173- void HistogramBase::FastRecordDelta (Local<Value> receiver) {
173+ void HistogramBase::FastRecordDelta (Local<Value> unused,
174+ Local<Value> receiver) {
174175 HistogramBase* histogram;
175176 ASSIGN_OR_RETURN_UNWRAP (&histogram, receiver);
176177 (*histogram)->RecordDelta ();
@@ -190,7 +191,8 @@ void HistogramBase::Record(const FunctionCallbackInfo<Value>& args) {
190191 (*histogram)->Record (value);
191192}
192193
193- void HistogramBase::FastRecord (Local<Value> receiver,
194+ void HistogramBase::FastRecord (Local<Value> unused,
195+ Local<Value> receiver,
194196 const int64_t value,
195197 FastApiCallbackOptions& options) {
196198 if (value < 1 ) {
@@ -438,7 +440,9 @@ void IntervalHistogram::Start(const FunctionCallbackInfo<Value>& args) {
438440 histogram->OnStart (args[0 ]->IsTrue () ? StartFlags::RESET : StartFlags::NONE);
439441}
440442
441- void IntervalHistogram::FastStart (Local<Value> receiver, bool reset) {
443+ void IntervalHistogram::FastStart (Local<Value> unused,
444+ Local<Value> receiver,
445+ bool reset) {
442446 IntervalHistogram* histogram;
443447 ASSIGN_OR_RETURN_UNWRAP (&histogram, receiver);
444448 histogram->OnStart (reset ? StartFlags::RESET : StartFlags::NONE);
@@ -450,7 +454,7 @@ void IntervalHistogram::Stop(const FunctionCallbackInfo<Value>& args) {
450454 histogram->OnStop ();
451455}
452456
453- void IntervalHistogram::FastStop (Local<Value> receiver) {
457+ void IntervalHistogram::FastStop (Local<Value> unused, Local<Value> receiver) {
454458 IntervalHistogram* histogram;
455459 ASSIGN_OR_RETURN_UNWRAP (&histogram, receiver);
456460 histogram->OnStop ();
@@ -566,42 +570,45 @@ void HistogramImpl::DoReset(const FunctionCallbackInfo<Value>& args) {
566570 (*histogram)->Reset ();
567571}
568572
569- void HistogramImpl::FastReset (Local<Value> receiver) {
573+ void HistogramImpl::FastReset (Local<Value> unused, Local<Value> receiver) {
570574 HistogramImpl* histogram = HistogramImpl::FromJSObject (receiver);
571575 (*histogram)->Reset ();
572576}
573577
574- double HistogramImpl::FastGetCount (Local<Value> receiver) {
578+ double HistogramImpl::FastGetCount (Local<Value> unused, Local<Value> receiver) {
575579 HistogramImpl* histogram = HistogramImpl::FromJSObject (receiver);
576580 return static_cast <double >((*histogram)->Count ());
577581}
578582
579- double HistogramImpl::FastGetMin (Local<Value> receiver) {
583+ double HistogramImpl::FastGetMin (Local<Value> unused, Local<Value> receiver) {
580584 HistogramImpl* histogram = HistogramImpl::FromJSObject (receiver);
581585 return static_cast <double >((*histogram)->Min ());
582586}
583587
584- double HistogramImpl::FastGetMax (Local<Value> receiver) {
588+ double HistogramImpl::FastGetMax (Local<Value> unused, Local<Value> receiver) {
585589 HistogramImpl* histogram = HistogramImpl::FromJSObject (receiver);
586590 return static_cast <double >((*histogram)->Max ());
587591}
588592
589- double HistogramImpl::FastGetMean (Local<Value> receiver) {
593+ double HistogramImpl::FastGetMean (Local<Value> unused, Local<Value> receiver) {
590594 HistogramImpl* histogram = HistogramImpl::FromJSObject (receiver);
591595 return (*histogram)->Mean ();
592596}
593597
594- double HistogramImpl::FastGetExceeds (Local<Value> receiver) {
598+ double HistogramImpl::FastGetExceeds (Local<Value> unused,
599+ Local<Value> receiver) {
595600 HistogramImpl* histogram = HistogramImpl::FromJSObject (receiver);
596601 return static_cast <double >((*histogram)->Exceeds ());
597602}
598603
599- double HistogramImpl::FastGetStddev (Local<Value> receiver) {
604+ double HistogramImpl::FastGetStddev (Local<Value> unused,
605+ Local<Value> receiver) {
600606 HistogramImpl* histogram = HistogramImpl::FromJSObject (receiver);
601607 return (*histogram)->Stddev ();
602608}
603609
604- double HistogramImpl::FastGetPercentile (Local<Value> receiver,
610+ double HistogramImpl::FastGetPercentile (Local<Value> unused,
611+ Local<Value> receiver,
605612 const double percentile) {
606613 HistogramImpl* histogram = HistogramImpl::FromJSObject (receiver);
607614 return static_cast <double >((*histogram)->Percentile (percentile));
0 commit comments