diff options
author | Trevor Norris <trev.norris@gmail.com> | 2014-11-14 15:47:34 -0800 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2014-12-09 17:57:16 +0100 |
commit | f39b48c26d669765154e42ebd02c28585551cd0e (patch) | |
tree | 3bec33760222d52bb97b665f3538540f0bf3ae8d /src/base-object-inl.h | |
parent | 819690fd983d61f90cdf05714a30782fe3b553cd (diff) | |
download | node-new-f39b48c26d669765154e42ebd02c28585551cd0e.tar.gz |
src: remove unnecessary template parameter
The template class information is received via the type of the first
argument. So there is no need to use Wrap<T>(handle).
PR-URL: https://github.com/joyent/node/pull/8110
Signed-off-by: Trevor Norris <trev.norris@gmail.com>
Reviewed-by: Fedor Indutny <fedor@indutny.com>
Reviewed-by: Alexis Campailla <alexis@janeasystems.com>
Reviewed-by: Julien Gilli <julien.gilli@joyent.com>
Diffstat (limited to 'src/base-object-inl.h')
-rw-r--r-- | src/base-object-inl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base-object-inl.h b/src/base-object-inl.h index 17540f4822..ac9c052813 100644 --- a/src/base-object-inl.h +++ b/src/base-object-inl.h @@ -70,7 +70,7 @@ inline void BaseObject::MakeWeak(Type* ptr) { 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>); } |