@@ -1095,7 +1095,7 @@ int Connection::SelectNextProtoCallback_(SSL *s,
10951095
10961096 switch (status) {
10971097 case OPENSSL_NPN_UNSUPPORTED:
1098- p->selectedNPNProto_ = Persistent<Value>::New (Null ());
1098+ p->selectedNPNProto_ = Persistent<Value>::New (Null (node_isolate ));
10991099 break ;
11001100 case OPENSSL_NPN_NEGOTIATED:
11011101 p->selectedNPNProto_ = Persistent<Value>::New (String::New (
@@ -1617,7 +1617,7 @@ Handle<Value> Connection::GetSession(const Arguments& args) {
16171617 return scope.Close (s);
16181618 }
16191619
1620- return Null ();
1620+ return Null (node_isolate );
16211621}
16221622
16231623Handle<Value> Connection::SetSession (const Arguments& args) {
@@ -1768,7 +1768,7 @@ Handle<Value> Connection::VerifyError(const Arguments& args) {
17681768
17691769 Connection *ss = Connection::Unwrap (args);
17701770
1771- if (ss->ssl_ == NULL ) return Null ();
1771+ if (ss->ssl_ == NULL ) return Null (node_isolate );
17721772
17731773
17741774 // XXX Do this check in JS land?
@@ -1789,7 +1789,7 @@ Handle<Value> Connection::VerifyError(const Arguments& args) {
17891789
17901790 switch (x509_verify_error) {
17911791 case X509_V_OK:
1792- return Null ();
1792+ return Null (node_isolate );
17931793
17941794 case X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT:
17951795 s = String::New (" UNABLE_TO_GET_ISSUER_CERT" );
@@ -3898,12 +3898,12 @@ void RandomBytesCheck(RandomBytesRequest* req, Local<Value> argv[2]) {
38983898 ERR_error_string_n (req->error_ , errmsg, sizeof errmsg);
38993899
39003900 argv[0 ] = Exception::Error (String::New (errmsg));
3901- argv[1 ] = Local<Value>::New (node_isolate, Null ());
3901+ argv[1 ] = Local<Value>::New (node_isolate, Null (node_isolate ));
39023902 }
39033903 else {
39043904 // avoids the malloc + memcpy
39053905 Buffer* buffer = Buffer::New (req->data_ , req->size_ , RandomBytesFree, NULL );
3906- argv[0 ] = Local<Value>::New (node_isolate, Null ());
3906+ argv[0 ] = Local<Value>::New (node_isolate, Null (node_isolate ));
39073907 argv[1 ] = Local<Object>::New (node_isolate, buffer->handle_ );
39083908 }
39093909}
0 commit comments