v8::HandleScope scope(env_->isolate());
v8::Local<v8::Object> handle = object();
CHECK_GT(handle->InternalFieldCount(), 0);
- Wrap<Type>(handle, ptr);
+ Wrap(handle, ptr);
handle_.MarkIndependent();
handle_.SetWeak<Type>(ptr, WeakCallback<Type>);
}
GetAddrInfoReqWrap::GetAddrInfoReqWrap(Environment* env,
Local<Object> req_wrap_obj)
: ReqWrap(env, req_wrap_obj, AsyncWrap::PROVIDER_GETADDRINFOREQWRAP) {
- Wrap<GetAddrInfoReqWrap>(req_wrap_obj, this);
+ Wrap(req_wrap_obj, this);
}
GetNameInfoReqWrap::GetNameInfoReqWrap(Environment* env,
Local<Object> req_wrap_obj)
: ReqWrap(env, req_wrap_obj, AsyncWrap::PROVIDER_GETNAMEINFOREQWRAP) {
- Wrap<GetNameInfoReqWrap>(req_wrap_obj, this);
+ Wrap(req_wrap_obj, this);
}
handle__(handle) {
handle__->data = this;
HandleScope scope(env->isolate());
- Wrap<HandleWrap>(object, this);
+ Wrap(object, this);
QUEUE_INSERT_TAIL(env->handle_wrap_queue(), &handle_wrap_queue_);
}
if (wrapper.IsEmpty())
return scope.Escape(Local<Value>::New(env->isolate(), Handle<Value>()));
- Wrap<ContextifyContext>(wrapper, this);
+ Wrap(wrapper, this);
return scope.Escape(wrapper);
}
syscall_(syscall),
data_(data),
dest_len_(0) {
- Wrap<FSReqWrap>(object(), this);
+ Wrap(object(), this);
}
void ReleaseEarly() {
PipeConnectWrap::PipeConnectWrap(Environment* env, Local<Object> req_wrap_obj)
: ReqWrap(env, req_wrap_obj, AsyncWrap::PROVIDER_PIPEWRAP) {
- Wrap<PipeConnectWrap>(req_wrap_obj, this);
+ Wrap(req_wrap_obj, this);
}
public:
ShutdownWrap(Environment* env, v8::Local<v8::Object> req_wrap_obj)
: ReqWrap(env, req_wrap_obj, AsyncWrap::PROVIDER_SHUTDOWNWRAP) {
- Wrap<ShutdownWrap>(req_wrap_obj, this);
+ Wrap(req_wrap_obj, this);
}
static void NewShutdownWrap(const v8::FunctionCallbackInfo<v8::Value>& args) {
WriteWrap(Environment* env, v8::Local<v8::Object> obj, StreamWrap* wrap)
: ReqWrap(env, obj, AsyncWrap::PROVIDER_WRITEWRAP),
wrap_(wrap) {
- Wrap<WriteWrap>(obj, this);
+ Wrap(obj, this);
}
void* operator new(size_t size, char* storage) { return storage; }
TCPConnectWrap::TCPConnectWrap(Environment* env, Local<Object> req_wrap_obj)
: ReqWrap(env, req_wrap_obj, AsyncWrap::PROVIDER_TCPWRAP) {
- Wrap<TCPConnectWrap>(req_wrap_obj, this);
+ Wrap(req_wrap_obj, this);
}
error_(nullptr),
cycle_depth_(0),
eof_(false) {
- node::Wrap<TLSCallbacks>(object(), this);
+ node::Wrap(object(), this);
MakeWeak(this);
// Initialize queue for clearIn writes
bool have_callback)
: ReqWrap(env, req_wrap_obj, AsyncWrap::PROVIDER_UDPWRAP),
have_callback_(have_callback) {
- Wrap<SendWrap>(req_wrap_obj, this);
+ Wrap(req_wrap_obj, this);
}