@@ -170,15 +170,15 @@ void SecureContext::Initialize(Handle<Object> target) {
170
170
Handle <Value> SecureContext::New (const Arguments& args) {
171
171
HandleScope scope (node_isolate);
172
172
SecureContext *p = new SecureContext ();
173
- p->Wrap (args.Holder ());
173
+ p->Wrap (args.This ());
174
174
return args.This ();
175
175
}
176
176
177
177
178
178
Handle <Value> SecureContext::Init (const Arguments& args) {
179
179
HandleScope scope (node_isolate);
180
180
181
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
181
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
182
182
183
183
OPENSSL_CONST SSL_METHOD *method = SSLv23_method ();
184
184
@@ -342,7 +342,7 @@ static X509* LoadX509 (Handle<Value> v) {
342
342
Handle <Value> SecureContext::SetKey (const Arguments& args) {
343
343
HandleScope scope (node_isolate);
344
344
345
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
345
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
346
346
347
347
unsigned int len = args.Length ();
348
348
if (len != 1 && len != 2 ) {
@@ -447,7 +447,7 @@ int SSL_CTX_use_certificate_chain(SSL_CTX *ctx, BIO *in) {
447
447
Handle <Value> SecureContext::SetCert (const Arguments& args) {
448
448
HandleScope scope (node_isolate);
449
449
450
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
450
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
451
451
452
452
if (args.Length () != 1 ) {
453
453
return ThrowException (Exception::TypeError (
@@ -478,7 +478,7 @@ Handle<Value> SecureContext::AddCACert(const Arguments& args) {
478
478
bool newCAStore = false ;
479
479
HandleScope scope (node_isolate);
480
480
481
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
481
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
482
482
483
483
if (args.Length () != 1 ) {
484
484
return ThrowException (Exception::TypeError (String::New (" Bad parameter" )));
@@ -508,7 +508,7 @@ Handle<Value> SecureContext::AddCACert(const Arguments& args) {
508
508
Handle <Value> SecureContext::AddCRL (const Arguments& args) {
509
509
HandleScope scope (node_isolate);
510
510
511
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
511
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
512
512
513
513
if (args.Length () != 1 ) {
514
514
return ThrowException (Exception::TypeError (String::New (" Bad parameter" )));
@@ -540,7 +540,7 @@ Handle<Value> SecureContext::AddCRL(const Arguments& args) {
540
540
Handle <Value> SecureContext::AddRootCerts (const Arguments& args) {
541
541
HandleScope scope (node_isolate);
542
542
543
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
543
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
544
544
545
545
assert (sc->ca_store_ == NULL );
546
546
@@ -579,7 +579,7 @@ Handle<Value> SecureContext::AddRootCerts(const Arguments& args) {
579
579
Handle <Value> SecureContext::SetCiphers (const Arguments& args) {
580
580
HandleScope scope (node_isolate);
581
581
582
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
582
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
583
583
584
584
if (args.Length () != 1 || !args[0 ]->IsString ()) {
585
585
return ThrowException (Exception::TypeError (String::New (" Bad parameter" )));
@@ -594,7 +594,7 @@ Handle<Value> SecureContext::SetCiphers(const Arguments& args) {
594
594
Handle <Value> SecureContext::SetOptions (const Arguments& args) {
595
595
HandleScope scope (node_isolate);
596
596
597
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
597
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
598
598
599
599
if (args.Length () != 1 || !args[0 ]->IntegerValue ()) {
600
600
return ThrowException (Exception::TypeError (String::New (" Bad parameter" )));
@@ -608,7 +608,7 @@ Handle<Value> SecureContext::SetOptions(const Arguments& args) {
608
608
Handle <Value> SecureContext::SetSessionIdContext (const Arguments& args) {
609
609
HandleScope scope (node_isolate);
610
610
611
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
611
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
612
612
613
613
if (args.Length () != 1 || !args[0 ]->IsString ()) {
614
614
return ThrowException (Exception::TypeError (String::New (" Bad parameter" )));
@@ -640,7 +640,7 @@ Handle<Value> SecureContext::SetSessionIdContext(const Arguments& args) {
640
640
Handle <Value> SecureContext::SetSessionTimeout (const Arguments& args) {
641
641
HandleScope scope (node_isolate);
642
642
643
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
643
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
644
644
645
645
if (args.Length () != 1 || !args[0 ]->IsInt32 ()) {
646
646
return ThrowTypeError (" Bad parameter" );
@@ -654,7 +654,7 @@ Handle<Value> SecureContext::SetSessionTimeout(const Arguments& args) {
654
654
655
655
Handle <Value> SecureContext::Close (const Arguments& args) {
656
656
HandleScope scope (node_isolate);
657
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
657
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
658
658
sc->FreeCTXMem ();
659
659
return False (node_isolate);
660
660
}
@@ -671,7 +671,7 @@ Handle<Value> SecureContext::LoadPKCS12(const Arguments& args) {
671
671
char * pass = NULL ;
672
672
bool ret = false ;
673
673
674
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
674
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
675
675
676
676
if (args.Length () < 1 ) {
677
677
return ThrowException (Exception::TypeError (
@@ -1213,7 +1213,7 @@ Handle<Value> Connection::New(const Arguments& args) {
1213
1213
HandleScope scope (node_isolate);
1214
1214
1215
1215
Connection *p = new Connection ();
1216
- p->Wrap (args.Holder ());
1216
+ p->Wrap (args.This ());
1217
1217
1218
1218
if (args.Length () < 1 || !args[0 ]->IsObject ()) {
1219
1219
return ThrowException (Exception::Error (String::New (
0 commit comments