@@ -523,9 +523,9 @@ void StatementSync::IterateReturnCallback(
523
523
auto context = env->context ();
524
524
525
525
Local<External> data = Local<External>::Cast (args.Data ());
526
- IterateCaptureContext* captureContext =
526
+ IterateCaptureContext* capture_context =
527
527
static_cast <IterateCaptureContext*>(data->Value ());
528
- auto stmt = captureContext ->stmt ;
528
+ auto stmt = capture_context ->stmt ;
529
529
sqlite3_reset (stmt->statement_ );
530
530
531
531
Local<Object> result = Object::New (isolate);
@@ -549,10 +549,10 @@ void StatementSync::IterateNextCallback(
549
549
auto context = env->context ();
550
550
551
551
Local<External> data = Local<External>::Cast (args.Data ());
552
- IterateCaptureContext* captureContext =
552
+ IterateCaptureContext* capture_context =
553
553
static_cast <IterateCaptureContext*>(data->Value ());
554
- auto stmt = captureContext ->stmt ;
555
- auto num_cols = captureContext ->num_cols ;
554
+ auto stmt = capture_context ->stmt ;
555
+ auto num_cols = capture_context ->num_cols ;
556
556
557
557
int r = sqlite3_step (stmt->statement_ );
558
558
if (r != SQLITE_ROW) {
@@ -616,45 +616,48 @@ void StatementSync::Iterate(const FunctionCallbackInfo<Value>& args) {
616
616
return ;
617
617
}
618
618
619
- Local<ObjectTemplate> iterableIteratorTemplate = ObjectTemplate::New (isolate);
619
+ Local<ObjectTemplate> iterable_iterator_template =
620
+ ObjectTemplate::New (isolate);
620
621
621
- IterateCaptureContext* captureContext = new IterateCaptureContext ();
622
- captureContext ->num_cols = sqlite3_column_count (stmt->statement_ );
623
- captureContext ->stmt = stmt;
624
- Local<FunctionTemplate> nextFuncTemplate =
622
+ IterateCaptureContext* capture_context = new IterateCaptureContext ();
623
+ capture_context ->num_cols = sqlite3_column_count (stmt->statement_ );
624
+ capture_context ->stmt = stmt;
625
+ Local<FunctionTemplate> next_func_template =
625
626
FunctionTemplate::New (isolate,
626
627
StatementSync::IterateNextCallback,
627
- External::New (isolate, captureContext ));
628
- Local<FunctionTemplate> returnFuncTemplate =
628
+ External::New (isolate, capture_context ));
629
+ Local<FunctionTemplate> return_func_template =
629
630
FunctionTemplate::New (isolate,
630
631
StatementSync::IterateReturnCallback,
631
- External::New (isolate, captureContext ));
632
+ External::New (isolate, capture_context ));
632
633
633
- iterableIteratorTemplate ->Set (String::NewFromUtf8Literal (isolate, " next" ),
634
- nextFuncTemplate );
635
- iterableIteratorTemplate ->Set (String::NewFromUtf8Literal (isolate, " return" ),
636
- returnFuncTemplate );
634
+ iterable_iterator_template ->Set (String::NewFromUtf8Literal (isolate, " next" ),
635
+ next_func_template );
636
+ iterable_iterator_template ->Set (String::NewFromUtf8Literal (isolate, " return" ),
637
+ return_func_template );
637
638
638
- Local<Object> iterableIterator =
639
- iterableIteratorTemplate ->NewInstance (context).ToLocalChecked ();
639
+ Local<Object> iterable_iterator =
640
+ iterable_iterator_template ->NewInstance (context).ToLocalChecked ();
640
641
641
642
Local<Object> global = context->Global ();
642
- Local<Object> globalThis =
643
+ Local<Object> js_global_this =
643
644
global->Get (context, String::NewFromUtf8Literal (isolate, " globalThis" ))
644
645
.ToLocalChecked ()
645
646
.As <Object>();
646
- Local<Object> JSIterator =
647
- globalThis->Get (context, String::NewFromUtf8Literal (isolate, " Iterator" ))
647
+ Local<Object> js_iterator =
648
+ js_global_this
649
+ ->Get (context, String::NewFromUtf8Literal (isolate, " Iterator" ))
648
650
.ToLocalChecked ()
649
651
.As <Object>();
650
- Local<Object> JSIteratorPrototype =
651
- JSIterator->Get (context, String::NewFromUtf8Literal (isolate, " prototype" ))
652
+ Local<Object> js_iterator_prototype =
653
+ js_iterator
654
+ ->Get (context, String::NewFromUtf8Literal (isolate, " prototype" ))
652
655
.ToLocalChecked ()
653
656
.As <Object>();
654
657
655
- iterableIterator ->SetPrototype (context, JSIteratorPrototype ).ToChecked ();
658
+ iterable_iterator ->SetPrototype (context, js_iterator_prototype ).ToChecked ();
656
659
657
- args.GetReturnValue ().Set (iterableIterator );
660
+ args.GetReturnValue ().Set (iterable_iterator );
658
661
}
659
662
660
663
void StatementSync::Get (const FunctionCallbackInfo<Value>& args) {
0 commit comments