Handle<Value> SecureContext::New(const Arguments& args) {
HandleScope scope(node_isolate);
SecureContext *p = new SecureContext();
- p->Wrap(args.Holder());
+ p->Wrap(args.This());
return args.This();
}
Handle<Value> SecureContext::Init(const Arguments& args) {
HandleScope scope(node_isolate);
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder());
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This());
OPENSSL_CONST SSL_METHOD *method = SSLv23_method();
Handle<Value> SecureContext::SetKey(const Arguments& args) {
HandleScope scope(node_isolate);
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder());
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This());
unsigned int len = args.Length();
if (len != 1 && len != 2) {
Handle<Value> SecureContext::SetCert(const Arguments& args) {
HandleScope scope(node_isolate);
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder());
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This());
if (args.Length() != 1) {
return ThrowException(Exception::TypeError(
bool newCAStore = false;
HandleScope scope(node_isolate);
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder());
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This());
if (args.Length() != 1) {
return ThrowException(Exception::TypeError(String::New("Bad parameter")));
Handle<Value> SecureContext::AddCRL(const Arguments& args) {
HandleScope scope(node_isolate);
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder());
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This());
if (args.Length() != 1) {
return ThrowException(Exception::TypeError(String::New("Bad parameter")));
Handle<Value> SecureContext::AddRootCerts(const Arguments& args) {
HandleScope scope(node_isolate);
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder());
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This());
assert(sc->ca_store_ == NULL);
Handle<Value> SecureContext::SetCiphers(const Arguments& args) {
HandleScope scope(node_isolate);
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder());
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This());
if (args.Length() != 1 || !args[0]->IsString()) {
return ThrowException(Exception::TypeError(String::New("Bad parameter")));
Handle<Value> SecureContext::SetOptions(const Arguments& args) {
HandleScope scope(node_isolate);
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder());
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This());
if (args.Length() != 1 || !args[0]->IntegerValue()) {
return ThrowException(Exception::TypeError(String::New("Bad parameter")));
Handle<Value> SecureContext::SetSessionIdContext(const Arguments& args) {
HandleScope scope(node_isolate);
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder());
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This());
if (args.Length() != 1 || !args[0]->IsString()) {
return ThrowException(Exception::TypeError(String::New("Bad parameter")));
Handle<Value> SecureContext::SetSessionTimeout(const Arguments& args) {
HandleScope scope(node_isolate);
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder());
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This());
if (args.Length() != 1 || !args[0]->IsInt32()) {
return ThrowTypeError("Bad parameter");
Handle<Value> SecureContext::Close(const Arguments& args) {
HandleScope scope(node_isolate);
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder());
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This());
sc->FreeCTXMem();
return False(node_isolate);
}
char* pass = NULL;
bool ret = false;
- SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.Holder());
+ SecureContext *sc = ObjectWrap::Unwrap<SecureContext>(args.This());
if (args.Length() < 1) {
return ThrowException(Exception::TypeError(
HandleScope scope(node_isolate);
Connection *p = new Connection();
- p->Wrap(args.Holder());
+ p->Wrap(args.This());
if (args.Length() < 1 || !args[0]->IsObject()) {
return ThrowException(Exception::Error(String::New(
HandleScope scope(node_isolate);
WrappedScript *t = new WrappedScript();
- t->Wrap(args.Holder());
+ t->Wrap(args.This());
return
WrappedScript::EvalMachine<compileCode, thisContext, wrapExternal>(args);
return try_catch.ReThrow();
}
} else {
- WrappedScript *n_script = ObjectWrap::Unwrap<WrappedScript>(args.Holder());
+ WrappedScript *n_script = ObjectWrap::Unwrap<WrappedScript>(args.This());
if (!n_script) {
return ThrowException(Exception::Error(
String::New("Must be called as a method of Script.")));
return try_catch.ReThrow();
}
} else {
- WrappedScript *n_script = ObjectWrap::Unwrap<WrappedScript>(args.Holder());
+ WrappedScript *n_script = ObjectWrap::Unwrap<WrappedScript>(args.This());
if (!n_script) {
return ThrowException(Exception::Error(
String::New("Must be called as a method of Script.")));
assert(args.IsConstructCall());
HandleScope scope(node_isolate);
StatWatcher* s = new StatWatcher();
- s->Wrap(args.Holder());
+ s->Wrap(args.This());
return args.This();
}
assert(args.Length() == 3);
HandleScope scope(node_isolate);
- StatWatcher* wrap = ObjectWrap::Unwrap<StatWatcher>(args.Holder());
+ StatWatcher* wrap = ObjectWrap::Unwrap<StatWatcher>(args.This());
String::Utf8Value path(args[0]);
const bool persistent = args[1]->BooleanValue();
const uint32_t interval = args[2]->Uint32Value();
Handle<Value> StatWatcher::Stop(const Arguments& args) {
HandleScope scope(node_isolate);
- StatWatcher* wrap = ObjectWrap::Unwrap<StatWatcher>(args.Holder());
+ StatWatcher* wrap = ObjectWrap::Unwrap<StatWatcher>(args.This());
if (onstop_sym.IsEmpty()) {
onstop_sym = NODE_PSYMBOL("onstop");
}