@@ -170,15 +170,15 @@ void SecureContext::Initialize(Handle<Object> target) {
170170Handle<Value> SecureContext::New (const Arguments& args) {
171171 HandleScope scope (node_isolate);
172172 SecureContext *p = new SecureContext ();
173- p->Wrap (args.Holder ());
173+ p->Wrap (args.This ());
174174 return args.This ();
175175}
176176
177177
178178Handle<Value> SecureContext::Init (const Arguments& args) {
179179 HandleScope scope (node_isolate);
180180
181- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
181+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
182182
183183 OPENSSL_CONST SSL_METHOD *method = SSLv23_method ();
184184
@@ -342,7 +342,7 @@ static X509* LoadX509 (Handle<Value> v) {
342342Handle<Value> SecureContext::SetKey (const Arguments& args) {
343343 HandleScope scope (node_isolate);
344344
345- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
345+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
346346
347347 unsigned int len = args.Length ();
348348 if (len != 1 && len != 2 ) {
@@ -447,7 +447,7 @@ int SSL_CTX_use_certificate_chain(SSL_CTX *ctx, BIO *in) {
447447Handle<Value> SecureContext::SetCert (const Arguments& args) {
448448 HandleScope scope (node_isolate);
449449
450- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
450+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
451451
452452 if (args.Length () != 1 ) {
453453 return ThrowException (Exception::TypeError (
@@ -478,7 +478,7 @@ Handle<Value> SecureContext::AddCACert(const Arguments& args) {
478478 bool newCAStore = false ;
479479 HandleScope scope (node_isolate);
480480
481- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
481+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
482482
483483 if (args.Length () != 1 ) {
484484 return ThrowException (Exception::TypeError (String::New (" Bad parameter" )));
@@ -508,7 +508,7 @@ Handle<Value> SecureContext::AddCACert(const Arguments& args) {
508508Handle<Value> SecureContext::AddCRL (const Arguments& args) {
509509 HandleScope scope (node_isolate);
510510
511- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
511+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
512512
513513 if (args.Length () != 1 ) {
514514 return ThrowException (Exception::TypeError (String::New (" Bad parameter" )));
@@ -540,7 +540,7 @@ Handle<Value> SecureContext::AddCRL(const Arguments& args) {
540540Handle<Value> SecureContext::AddRootCerts (const Arguments& args) {
541541 HandleScope scope (node_isolate);
542542
543- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
543+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
544544
545545 assert (sc->ca_store_ == NULL );
546546
@@ -579,7 +579,7 @@ Handle<Value> SecureContext::AddRootCerts(const Arguments& args) {
579579Handle<Value> SecureContext::SetCiphers (const Arguments& args) {
580580 HandleScope scope (node_isolate);
581581
582- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
582+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
583583
584584 if (args.Length () != 1 || !args[0 ]->IsString ()) {
585585 return ThrowException (Exception::TypeError (String::New (" Bad parameter" )));
@@ -594,7 +594,7 @@ Handle<Value> SecureContext::SetCiphers(const Arguments& args) {
594594Handle<Value> SecureContext::SetOptions (const Arguments& args) {
595595 HandleScope scope (node_isolate);
596596
597- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
597+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
598598
599599 if (args.Length () != 1 || !args[0 ]->IntegerValue ()) {
600600 return ThrowException (Exception::TypeError (String::New (" Bad parameter" )));
@@ -608,7 +608,7 @@ Handle<Value> SecureContext::SetOptions(const Arguments& args) {
608608Handle<Value> SecureContext::SetSessionIdContext (const Arguments& args) {
609609 HandleScope scope (node_isolate);
610610
611- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
611+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
612612
613613 if (args.Length () != 1 || !args[0 ]->IsString ()) {
614614 return ThrowException (Exception::TypeError (String::New (" Bad parameter" )));
@@ -640,7 +640,7 @@ Handle<Value> SecureContext::SetSessionIdContext(const Arguments& args) {
640640Handle<Value> SecureContext::SetSessionTimeout (const Arguments& args) {
641641 HandleScope scope (node_isolate);
642642
643- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
643+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
644644
645645 if (args.Length () != 1 || !args[0 ]->IsInt32 ()) {
646646 return ThrowTypeError (" Bad parameter" );
@@ -654,7 +654,7 @@ Handle<Value> SecureContext::SetSessionTimeout(const Arguments& args) {
654654
655655Handle<Value> SecureContext::Close (const Arguments& args) {
656656 HandleScope scope (node_isolate);
657- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
657+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
658658 sc->FreeCTXMem ();
659659 return False (node_isolate);
660660}
@@ -671,7 +671,7 @@ Handle<Value> SecureContext::LoadPKCS12(const Arguments& args) {
671671 char * pass = NULL ;
672672 bool ret = false ;
673673
674- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder ());
674+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This ());
675675
676676 if (args.Length () < 1 ) {
677677 return ThrowException (Exception::TypeError (
@@ -1213,7 +1213,7 @@ Handle<Value> Connection::New(const Arguments& args) {
12131213 HandleScope scope (node_isolate);
12141214
12151215 Connection *p = new Connection ();
1216- p->Wrap (args.Holder ());
1216+ p->Wrap (args.This ());
12171217
12181218 if (args.Length () < 1 || !args[0 ]->IsObject ()) {
12191219 return ThrowException (Exception::Error (String::New (
0 commit comments